diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-04 12:03:33 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-04 12:03:33 +0000 |
commit | 6797d9f2ddc5daf375e53159085e6b532e2ccc99 (patch) | |
tree | 4988e94ccd02721ce943235e581cbf0004871580 /converters/uulib | |
parent | ea2b797120e6f07dff377a3227d59ec3f4a0bf89 (diff) |
Notes
Diffstat (limited to 'converters/uulib')
-rw-r--r-- | converters/uulib/files/patch-uulib_uuscan.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/converters/uulib/files/patch-uulib_uuscan.c b/converters/uulib/files/patch-uulib_uuscan.c new file mode 100644 index 000000000000..55bafa7aba46 --- /dev/null +++ b/converters/uulib/files/patch-uulib_uuscan.c @@ -0,0 +1,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))) { |