|
a/src/bincimapmime/mime-printbody.cc |
|
b/src/bincimapmime/mime-printbody.cc |
|
... |
|
... |
91 |
unsigned int startoffset,
|
91 |
unsigned int startoffset,
|
92 |
unsigned int length) const
|
92 |
unsigned int length) const
|
93 |
{
|
93 |
{
|
94 |
mimeSource->reset();
|
94 |
mimeSource->reset();
|
95 |
mimeSource->seek(bodystartoffsetcrlf + startoffset);
|
95 |
mimeSource->seek(bodystartoffsetcrlf + startoffset);
|
96 |
|
96 |
s.reserve(length);
|
97 |
if (startoffset + length > bodylength)
|
97 |
if (startoffset + length > bodylength)
|
98 |
length = bodylength - startoffset;
|
98 |
length = bodylength - startoffset;
|
99 |
|
99 |
|
100 |
char c = '\0';
|
100 |
char c = '\0';
|
101 |
for (unsigned int i = 0; i < length; ++i) {
|
101 |
for (unsigned int i = 0; i < length; ++i) {
|