aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-02-01 16:37:50 +0000
committerVincent Richard <[email protected]>2005-02-01 16:37:50 +0000
commit1e393f0f0f0786459d71f776b9dfb652e354ca8a (patch)
tree2970f3a236395b40ceab0e132fd2198e29570b29
parentStarted version 0.6.4. (diff)
downloadvmime-1e393f0f0f0786459d71f776b9dfb652e354ca8a.tar.gz
vmime-1e393f0f0f0786459d71f776b9dfb652e354ca8a.zip
Fixed possible segfault when encoding is Base64.
-rw-r--r--ChangeLog4
-rw-r--r--src/text.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e8fbd75c..697d71ca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
VERSION 0.6.4cvs
================
+2005-02-01 Vincent Richard <[email protected]>
+
+ * text.cpp: fixed possible segfault when encoding is Base64 (typo).
+
2005-01-28 Vincent Richard <[email protected]>
* Started version 0.6.4.
diff --git a/src/text.cpp b/src/text.cpp
index 5995daf1..e0a6e1de 100644
--- a/src/text.cpp
+++ b/src/text.cpp
@@ -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;