patch/patch-parse.patch

13 lines
336 B
Diff

--- patch-2.5.4/partime.c.parse 1998-03-15 15:48:53.000000000 +0000
+++ patch-2.5.4/partime.c 2005-09-07 08:04:41.000000000 +0000
@@ -792,7 +792,8 @@
if (negative)
n = -n;
while (!ISALNUM ((unsigned char) *s))
- s++;
+ if (*s++ == '\0')
+ return 0;
i = lookup (s, relative_units);
if (!TM_DEFINED (i))
return 0;