Adopt UU-decoder for UUE from Fleetstreet. Patch from Konstantin Kuzov 2:5019/40
This commit is contained in:
parent
7d3a997e14
commit
b29984710a
@ -1093,6 +1093,8 @@ UUDecodePart (FILE *datain, FILE *dataout, int *state,
|
||||
else if ((*state == END) && (method == UU_ENCODED)) {
|
||||
if (strncmp (line, "`", 1) == 0)
|
||||
*state = END2;
|
||||
else if (strncmp (line, "end", 3) == 0)
|
||||
*state = DONE;
|
||||
}
|
||||
else if ((*state == END) && (method == XX_ENCODED)) {
|
||||
if (strncmp (line, "+", 1) == 0)
|
||||
|
@ -1140,10 +1140,10 @@ ScanData (FILE *datei, char *fname, int *errcode,
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (prevlinefirstchar == '`') {
|
||||
// if (prevlinefirstchar == '`') {
|
||||
result->end = 1;
|
||||
break;
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user