From 768ed964feb38aa838237d1f444db48636173655 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Mon, 4 Oct 2004 15:00:51 +0000 Subject: [PATCH] Fixes for multipart UUE --- goldlib/uulib/uunconc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/goldlib/uulib/uunconc.c b/goldlib/uulib/uunconc.c index dff494a..c468d59 100644 --- a/goldlib/uulib/uunconc.c +++ b/goldlib/uulib/uunconc.c @@ -1027,6 +1027,7 @@ UUDecodePart (FILE *datain, FILE *dataout, int *state, if (*state == BEGIN) { if ((method == UU_ENCODED || method == XX_ENCODED) && (strncmp (line, "begin ", 6) == 0 || + strncmp (line, "section ", 8) == 0 || _FP_strnicmp (line, "
begin ", 11) == 0)) { /* for LYNX */
 	*state = DATA;
 	continue;
@@ -1145,7 +1146,8 @@ UUDecodePart (FILE *datain, FILE *dataout, int *state,
       }
 
       if (vflag == method) {
-	if (tf) {
+//	if (tf) {
+	if (tf || (method == UU_ENCODED || method == XX_ENCODED)) {
 	  count  = UUDecodeLine (line, oline, method);
 	  if (method == YENC_ENCODED) {
 	    if (yepartends)
@@ -1153,6 +1155,7 @@ UUDecodePart (FILE *datain, FILE *dataout, int *state,
 	    yefilecrc = crc32(yefilecrc, (unsigned char *) oline, count);
 	    yepartsize += count;
 	  }
+	  tf = 1;
 	  vlc++; lc[1]++;
 	}
 	else if (tc == 3) {