diff --git a/goldlib/uulib/uunconc.cpp b/goldlib/uulib/uunconc.cpp index f966c16..0e9547f 100644 --- a/goldlib/uulib/uunconc.cpp +++ b/goldlib/uulib/uunconc.cpp @@ -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; }