bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uudecode 4.2c


From: Gerald Weber
Subject: uudecode 4.2c
Date: Wed, 02 May 2001 10:19:50 +0200

hi,

not really a bug but a feature...

if a file contains the line
"begin 666 There goes Tokyo copy.jpg"

the output file is named "There" and not "There goes Tokyo copy.jpg"

if you like you should consider using the following patch:


--- uudecode.c  Wed May  2 10:04:46 2001
+++ uudecode1.c Wed May  2 10:12:28 2001
@@ -292,12 +292,12 @@
 
       if (strncmp (buf, "begin", 5) == 0)
        {
-         if (sscanf (buf, "begin-base64 %o %s", &mode, buf) == 2)
+         if (sscanf (buf, "begin-base64 %o %[^\n]s", &mode, buf) == 2)
            {
              do_base64 = 1;
              break;
            }
-         else if (sscanf (buf, "begin %o %s", &mode, buf) == 2)
+         else if (sscanf (buf, "begin %o %[^\n]s", &mode, buf) == 2)
            break;
        }
     }


thx
gerald weber



reply via email to

[Prev in Thread] Current Thread [Next in Thread]