Prevents double transcoding

This commit is contained in:
Stas Degteff 2008-01-20 17:41:56 +00:00
parent 27aefddd82
commit 09f4b036f3

View File

@ -1912,7 +1912,7 @@ char* XlatStr(char* dest, const char* src, int level, Chs* chrtbl, int qpencoded
else else
#endif #endif
if (chrs) if ((level < 0) && chrs)
{ {
tptr = (char*)chrs[(byte)dochar]; tptr = (char*)chrs[(byte)dochar];
clen = *tptr++; clen = *tptr++;
@ -2127,7 +2127,7 @@ void MakeLineIndex(GMsg* msg, int margin, bool getvalue, bool header_recode) {
// Insert previous quotestring // Insert previous quotestring
for(n=0; n<qlen; n++) for(n=0; n<qlen; n++)
{ {
if (ChsTP) if ((level > 0) && ChsTP)
{ {
tptr = (char*)ChsTP[(byte)(*qptr++)]; tptr = (char*)ChsTP[(byte)(*qptr++)];
chln = *tptr++; chln = *tptr++;
@ -2603,7 +2603,7 @@ void MakeLineIndex(GMsg* msg, int margin, bool getvalue, bool header_recode) {
defaultchardo: defaultchardo:
dochar = *ptr++; dochar = *ptr++;
chardo: chardo:
if (ChsTP) if ((level > 0) && ChsTP)
{ {
tptr = (char*)ChsTP[(byte)dochar]; tptr = (char*)ChsTP[(byte)dochar];
chln = *tptr++; chln = *tptr++;