From: Junio C Hamano Date: Sun, 21 May 2006 10:01:59 +0000 (-0700) Subject: checkdiff_consume: strtol parameter fix. X-Git-Tag: v1.4.0-rc1~107 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9e848163eda686093f689c25cfa9937ed2a9fdf8;p=git.git 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 --- diff --git a/diff.c b/diff.c index af5db0ec..d3bb10e0 100644 --- a/diff.c +++ b/diff.c @@ -431,7 +431,7 @@ static void checkdiff_consume(void *priv, char *line, unsigned long len) else if (line[0] == '@') { char *plus = strchr(line, '+'); if (plus) - data->lineno = strtol(plus, line + len, 10); + data->lineno = strtol(plus, NULL, 10); else die("invalid diff"); }