Adopt UU-decoder for UUE from Fleetstreet. Patch from Konstantin Kuzov 2:5019/40

This commit is contained in:
Stas Degteff 2009-06-17 08:45:28 +00:00
parent 7d3a997e14
commit b29984710a
2 changed files with 5 additions and 3 deletions

View File

@ -1092,7 +1092,9 @@ UUDecodePart (FILE *datain, FILE *dataout, int *state,
}
else if ((*state == END) && (method == UU_ENCODED)) {
if (strncmp (line, "`", 1) == 0)
*state = END2;
*state = END2;
else if (strncmp (line, "end", 3) == 0)
*state = DONE;
}
else if ((*state == END) && (method == XX_ENCODED)) {
if (strncmp (line, "+", 1) == 0)

View File

@ -1140,10 +1140,10 @@ ScanData (FILE *datei, char *fname, int *errcode,
}
}
else {
if (prevlinefirstchar == '`') {
// if (prevlinefirstchar == '`') {
result->end = 1;
break;
}
// }
}
}
}