" %s\n"
"Lines starting with '%c' will be stripped.\n",
branch_name, comment_line_char);
- write_file(git_path(edit_description), "%s", buf.buf);
+ write_file_buf(git_path(edit_description), buf.buf, buf.len);
strbuf_reset(&buf);
if (launch_editor(git_path(edit_description), &buf, NULL)) {
strbuf_release(&buf);