Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/fmt-patch' into next
author
Junio C Hamano
<junkio@cox.net>
Sat, 22 Apr 2006 10:06:58 +0000
(
03:06
-0700)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 22 Apr 2006 10:06:58 +0000
(
03:06
-0700)
* jc/fmt-patch:
git-fmt-patch: thinkofix to show [PATCH] properly.
commit.c
patch
|
blob
|
history
raw
(from parent 1:
1cc4764
)
diff --git
a/commit.c
b/commit.c
index 06e00987cc471cb80b9ab891cb2c99bc42f26b96..f4e4eea014d997f5b825a09f2c9f7620205e6243 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-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);