From b29984710a255526a5767070fd3fe8fc3a66d226 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Wed, 17 Jun 2009 08:45:28 +0000 Subject: [PATCH] Adopt UU-decoder for UUE from Fleetstreet. Patch from Konstantin Kuzov 2:5019/40 --- goldlib/uulib/uunconc.cpp | 4 +++- goldlib/uulib/uuscan.cpp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/goldlib/uulib/uunconc.cpp b/goldlib/uulib/uunconc.cpp index 0e9547f..d478563 100644 --- a/goldlib/uulib/uunconc.cpp +++ b/goldlib/uulib/uunconc.cpp @@ -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) diff --git a/goldlib/uulib/uuscan.cpp b/goldlib/uulib/uuscan.cpp index 7e9bbc3..19eafeb 100644 --- a/goldlib/uulib/uuscan.cpp +++ b/goldlib/uulib/uuscan.cpp @@ -1140,10 +1140,10 @@ ScanData (FILE *datei, char *fname, int *errcode, } } else { - if (prevlinefirstchar == '`') { +// if (prevlinefirstchar == '`') { result->end = 1; break; - } +// } } } }