summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87a56cd)
raw | patch | inline | side by side (parent: 87a56cd)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 21 May 2006 10:01:59 +0000 (03:01 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 21 May 2006 10:01:59 +0000 (03:01 -0700) |
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>
the optional return value to retrieve where the parser stopped.
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | patch | blob | history |
index af5db0ec12817a259c8c4f4c1482aa90ace03f17..d3bb10e009f58a36e1f3b09f11253a84ac72c46e 100644 (file)
--- a/diff.c
+++ b/diff.c
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");
}