]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit.c
mailinfo: factor out some repeated header handling
[thirdparty/git.git] / commit.c
index 434ec030d6b2a0074c46c376c6322c92fd5c8a39..83e1190ad91712a3171b25e57703e4ab88e5e13d 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -993,7 +993,7 @@ static int do_sign_commit(struct strbuf *buf, const char *keyid)
                        strbuf_insert(buf, inspos, gpg_sig_header, gpg_sig_header_len);
                        inspos += gpg_sig_header_len;
                }
-               strbuf_insert(buf, inspos++, " ", 1);
+               strbuf_insertstr(buf, inspos++, " ");
                strbuf_insert(buf, inspos, bol, len);
                inspos += len;
                copypos += len;