X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.c;h=fedbd5e5267ec4beaf1f245a879918a2685c10b9;hb=259d87c354954e8ee3b241dce1393c27186e8ee7;hp=a6c6f70a9237385d163ea12ef28e5087e9f80411;hpb=6ea71fe7d36cf5b81c2100d97a822ecf0bc04746;p=git.git diff --git a/commit.c b/commit.c index a6c6f70a9..fedbd5e52 100644 --- a/commit.c +++ b/commit.c @@ -212,7 +212,7 @@ int write_shallow_commits(int fd, int use_pack_protocol) else { if (write_in_full(fd, hex, 40) != 40) break; - if (write_in_full(fd, "\n", 1) != 1) + if (write_str_in_full(fd, "\n") != 1) break; } }