diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-22 03:06:58 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-22 03:06:58 -0700 |
commit | f1f114d0807a8632bfccda9f65bf783a47b4b8b6 (patch) | |
tree | 2d7d4ad823d19cae7f9063194fc0f74ff2766033 | |
parent | Merge branch 'jc/cc-stat' into next (diff) | |
parent | git-fmt-patch: thinkofix to show [PATCH] properly. (diff) | |
download | tgif-f1f114d0807a8632bfccda9f65bf783a47b4b8b6.tar.xz |
Merge branch 'jc/fmt-patch' into next
* jc/fmt-patch:
git-fmt-patch: thinkofix to show [PATCH] properly.
-rw-r--r-- | commit.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -574,8 +574,9 @@ unsigned long pretty_print_commit(enum cmit_fmt fmt, const struct commit *commit } if (subject) { - memcpy(buf + offset, subject, 9); - offset += 9; + int slen = strlen(subject); + memcpy(buf + offset, subject, slen); + offset += slen; } memset(buf + offset, ' ', indent); memcpy(buf + offset + indent, line, linelen); |