Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
spurious .sp in manpages
[gitweb.git]
/
builtin-shortlog.c
diff --git
a/builtin-shortlog.c
b/builtin-shortlog.c
index 3322c3a2eef3f331ea716690039c8b38bf4a6fd0..3fc43dd7dd89fea2fb7f02e694ed632215002e13 100644
(file)
--- a/
builtin-shortlog.c
+++ b/
builtin-shortlog.c
@@
-188,7
+188,8
@@
static void read_from_stdin(struct path_list *list)
bob = buffer + strlen(buffer);
else {
offset = 8;
- if (isspace(bob[-1]))
+ while (buffer + offset < bob &&
+ isspace(bob[-1]))
bob--;
}