]> sjero.net Git - wget/commitdiff
[svn] Igor Khristophorov's fix for check_end(). From
authorhniksic <devnull@localhost>
Sun, 17 Dec 2000 19:31:30 +0000 (11:31 -0800)
committerhniksic <devnull@localhost>
Sun, 17 Dec 2000 19:31:30 +0000 (11:31 -0800)
<sxs4s027snq.fsf@florida.arsdigita.de>.

src/ChangeLog
src/http.c

index 1a0c447d76ef0dbfa076c014931a8c8e0524c6be..12f866c0e3f4f06e7b62c07fac28b92d866c0609 100644 (file)
@@ -1,3 +1,7 @@
+2000-12-17  Igor Khristophorov  <igor@atdot.org>
+
+       * http.c (check_end): Fix test for '+' or '-'.
+
 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * url.c (parseurl): Rename inner loop var from i to ind to avoid
index b9c8e5856453d4f7523de93905362d6c8cd17f14..398564677830f6ab2f861b6f9c662e50648641d4 100644 (file)
@@ -1712,7 +1712,7 @@ check_end (const char *p)
     ++p;
   if (!*p
       || (p[0] == 'G' && p[1] == 'M' && p[2] == 'T')
-      || ((p[0] == '+' || p[1] == '-') && ISDIGIT (p[1])))
+      || ((p[0] == '+' || p[0] == '-') && ISDIGIT (p[1])))
     return 1;
   else
     return 0;