Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-21 14:01:59 +0400
committerJunio C Hamano <junkio@cox.net>2006-05-21 14:01:59 +0400
commit9e848163eda686093f689c25cfa9937ed2a9fdf8 (patch)
tree2d954ae112629407e13eada1b2d15524033912e5 /diff.c
parent87a56cd3b1dfb651076fbdc6d3591a32d1286a03 (diff)
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>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index af5db0ec12..d3bb10e009 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");
}