X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-fetch.c;h=cb48c57ca3e66b7ec39a98128b2cfb058c2dad15;hb=4b683658be0bd21eac7243bac6fb083e1cc00060;hp=817dd6bff0bf0ddc9a3d00191bb3c422300b878b;hpb=814035c12a07927ea03350184a14f869cdce7276;p=git.git diff --git a/builtin-fetch.c b/builtin-fetch.c index 817dd6bff..cb48c57ca 100644 --- a/builtin-fetch.c +++ b/builtin-fetch.c @@ -454,7 +454,7 @@ static int quickfetch(struct ref *ref_map) for (ref = ref_map; ref; ref = ref->next) { if (write_in_full(revlist.in, sha1_to_hex(ref->old_sha1), 40) < 0 || - write_in_full(revlist.in, "\n", 1) < 0) { + write_str_in_full(revlist.in, "\n") < 0) { if (errno != EPIPE && errno != EINVAL) error("failed write to rev-list: %s", strerror(errno)); err = -1;