Fixed possible segfault when encoding is Base64.

This commit is contained in:
Vincent Richard 2005-02-01 16:37:50 +00:00
parent 653ef5c519
commit 1e393f0f0f
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,10 @@
VERSION 0.6.4cvs
================
2005-02-01 Vincent Richard <vincent@vincent-richard.net>
* text.cpp: fixed possible segfault when encoding is Base64 (typo).
2005-01-28 Vincent Richard <vincent@vincent-richard.net>
* Started version 0.6.4.

View File

@ -537,7 +537,7 @@ void text::encodeAndFold(utility::outputStream& os, const string::size_type maxL
encoder* theEncoder;
if (encoding == 'B') theEncoder == new encoderB64;
if (encoding == 'B') theEncoder = new encoderB64;
else theEncoder = new encoderQP;
string qpEncodedBuffer;