aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-10-14 18:41:18 +0000
committerVincent Richard <[email protected]>2005-10-14 18:41:18 +0000
commit59739dd3ec587e44231cf9c1b309e6728578357c (patch)
tree3e90b4667211446439d79cd766f6590098db9c07
parentNot an attachment if a 'Content-Id' field is present. (diff)
downloadvmime-59739dd3ec587e44231cf9c1b309e6728578357c.tar.gz
vmime-59739dd3ec587e44231cf9c1b309e6728578357c.zip
Fixed a bug in length calculation.
-rw-r--r--src/utility/stringProxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utility/stringProxy.cpp b/src/utility/stringProxy.cpp
index 10c2c3ce..e40ae1a4 100644
--- a/src/utility/stringProxy.cpp
+++ b/src/utility/stringProxy.cpp
@@ -93,7 +93,7 @@ void stringProxy::extract(outputStream& os, const size_type start, const size_ty
if (end == std::numeric_limits <size_type>::max())
len = m_end - start - m_start;
else if (end > start)
- len = end - start - m_start;
+ len = end - start;
if (progress)
progress->start(len);