aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-06-21 21:13:38 +0000
committerVincent Richard <[email protected]>2005-06-21 21:13:38 +0000
commitaf45ec72160d263f9b35d5ad61cf38c4816ffcc3 (patch)
treed29fab0efbd49fa32732b02cb8a4ed0be6b4452c /src
parentFixed compilation errors with g++ 4.0. (diff)
downloadvmime-af45ec72160d263f9b35d5ad61cf38c4816ffcc3.tar.gz
vmime-af45ec72160d263f9b35d5ad61cf38c4816ffcc3.zip
Fixed a bug in RFC-2231 implementation.
Diffstat (limited to 'src')
-rw-r--r--src/defaultParameter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/defaultParameter.cpp b/src/defaultParameter.cpp
index d2110be2..3a70eb72 100644
--- a/src/defaultParameter.cpp
+++ b/src/defaultParameter.cpp
@@ -200,7 +200,7 @@ void defaultParameter::generate(utility::outputStream& os, const string::size_ty
bool needQuoting = false;
string::size_type valueLength = 0;
- for (string::size_type i = 0 ; (i < value.length()) && (pos < maxLineLength - 4) ; ++i, ++valueLength)
+ for (string::size_type i = 0 ; (i < value.length()) && (pos + valueLength < maxLineLength - 4) ; ++i, ++valueLength)
{
switch (value[i])
{