Fixed multifile UUE decoding.

This commit is contained in:
Ianos Gnatiuc 2007-01-18 20:45:32 +00:00
parent bda4107d00
commit 9e44d9f9d1

View File

@ -964,7 +964,8 @@ UUDecodePart (FILE *datain, FILE *dataout, int *state,
return UURET_IOERR;
}
if ((method == UU_ENCODED) && (regexp1.match(line) || regexp2.match(line)))
if ((method == UU_ENCODED) && (*state == DATA) &&
(regexp1.match(line) || regexp2.match(line)))
{
endsection = true;
}