summaryrefslogtreecommitdiffstats
path: root/converters/uulib/files/patch-uulib_uuscan.c
blob: 55bafa7aba46ea6e8abd96624921a0e58ca36626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- uulib/uuscan.c.orig	Tue Mar  2 01:52:27 2004
+++ uulib/uuscan.c	Sun Jul  3 16:50:37 2005
@@ -251,8 +251,9 @@
     /*
      * see if line was terminated with CR. Otherwise, it continues ...
      */
-    c = strlen (ptr);
-    if (c>0 && (ptr[c-1] == '\012' || ptr[c-1] == '\015'))
+    c = strlen (uugen_inbuffer);
+    if (c>0 &&
+	(uugen_inbuffer[c-1] == '\012' || uugen_inbuffer[c-1] == '\015'))
       hadcr = 1;
     else
       hadcr = 0;
@@ -261,6 +262,7 @@
      * strip whitespace
      */
 
+    c = strlen (ptr);
     ptr     += c;
     llength += c;
     while (llength && isspace(*(ptr-1))) {
OpenPOWER on IntegriCloud