In parser.cpp, line 16, the following code:
unsigned int pos = encoding.find(c);
if (pos >= 0) {
...
}
should be changed to:
int pos = encoding.find(c);
if (pos != std::string::npos) {
...
}
With the way the code was before, the condition in the if statement (pos >=
0) would always be true because pos was defined as an unsigned integer
(always positive). Also, using std::string::npos is probably more standard
way of doing it (perhaps).
I ran into this problem because the base64 encoded attachments were not
being decoded properly until I fixed this.
-Joel
Environment:
Windows XP, Microsfot Visual Studio 2005
Nobody/Anonymous
None
None
Public