checkdiff_consume: strtol parameter fix.
The second parameter is not the end of string input; it is the optional return value to retrieve where the parser stopped. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
May 21, 2006 at 03:01 UTC
9e848163eda686093f689c25cfa9937ed2a9fdf8
1 file changed
+1
-1
diff.c
+1
-1
@@ -431,7 +431,7 @@ static void checkdiff_consume(void *priv, char *line, unsigned long len)
431
else if (line[0] == '@') {
432
char *plus = strchr(line, '+');
433
if (plus)
434
- data->lineno = strtol(plus, line + len, 10);
434
+ data->lineno = strtol(plus, NULL, 10);
435
else
436
die("invalid diff");
437
}