Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
name-rev: fix off-by-one error in --stdin.
author
Junio C Hamano
<junkio@cox.net>
Sat, 26 Nov 2005 07:36:58 +0000
(23:36 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 26 Nov 2005 07:36:58 +0000
(23:36 -0800)
It dropped the last hexdigit in the object name.
[jc: Noticed and patch supplied by ALASCM, reworked to apply at
the right place by me]
Signed-off-by: Junio C Hamano <junkio@cox.net>
name-rev.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f359ae4
)
diff --git
a/name-rev.c
b/name-rev.c
index 817e36b793aa1560d43b27682afe6631564e5738..7d89401a41e911ff770b1ef63b56ef1a11619934 100644
(file)
--- a/
name-rev.c
+++ b/
name-rev.c
@@
-217,10
+217,9
@@
int main(int argc, char **argv)
if (!strcmp(name, "undefined"))
continue;
- fwrite(p_start, p - p_start, 1, stdout);
- fputc('(', stdout);
- fputs(name, stdout);
- fputc(')', stdout);
+ fwrite(p_start, p - p_start + 1, 1,
+ stdout);
+ printf(" (%s)", name);
p_start = p + 1;
}
}