X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=sha1_file.c;h=8d189d4919f83c243c306973285cefb5b55e2f19;hb=0d62fb5672c7b6e3fc6c5418d61ff39bf6034741;hp=e9285c144e05b4b3528c7a96025730dd9a7b3668;hpb=f10e0e0b18c8e2e69535e7380fb3c1f9b097cfda;p=git.git diff --git a/sha1_file.c b/sha1_file.c index e9285c14..8d189d49 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1388,7 +1388,7 @@ int write_sha1_from_fd(const unsigned char *sha1, int fd, char *buffer, ssize_t size; if (*bufposn) { stream.avail_in = *bufposn; - stream.next_in = buffer; + stream.next_in = (unsigned char *) buffer; do { stream.next_out = discard; stream.avail_out = sizeof(discard);