Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
strbuf: use strbuf_addstr() for adding C strings
[gitweb.git]
/
builtin
/
commit.c
diff --git
a/builtin/commit.c
b/builtin/commit.c
index 461c3b1cade4a995d3eb3cc212645791245865e0..31d906bbf5973a6aad105ff018b31df951fecec4 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-707,7
+707,7
@@
static int prepare_to_commit(const char *index_file, const char *prefix,
char *buffer;
buffer = strstr(use_message_buffer, "\n\n");
if (buffer)
- strbuf_add
(&sb, buffer + 2, strlen(buffer + 2)
);
+ strbuf_add
str(&sb, buffer + 2
);
hook_arg1 = "commit";
hook_arg2 = use_message;
} else if (fixup_message) {