gitweb: Handle non UTF-8 text better
[gitweb.git] / pack-write.c
index de72f44dc8ea5098b5824eb30b119a8508293226..ae2e481e5554cfa66cf137d38c38f961b9aa8ec7 100644 (file)
@@ -25,7 +25,7 @@ void fixup_pack_header_footer(int pack_fd,
 
        buf = xmalloc(buf_sz);
        for (;;) {
-               size_t n = xread(pack_fd, buf, buf_sz);
+               ssize_t n = xread(pack_fd, buf, buf_sz);
                if (!n)
                        break;
                if (n < 0)