Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Win32: Unicode file name support (except dirent)
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 2378ae49c6683789f82da64765e4be12d598c869..06bdfb8ae5acab2c6090ca4154a26fca6da8b74c 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-3422,7
+3422,8
@@
static int stat_opt(struct diff_options *options, const char **av)
int count = options->stat_count;
int argcount = 1;
- arg += strlen("--stat");
+ if (!skip_prefix(arg, "--stat", &arg))
+ die("BUG: stat option does not begin with --stat: %s", arg);
end = (char *)arg;
switch (*arg) {