Changed the static file_struct var to match the changes in rsync.h.
[rsync/rsync.git] / util.c
diff --git a/util.c b/util.c
index 40f00d2..647d6f5 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1128,7 +1128,7 @@ char *human_num(int64 num)
        if (!num)
                *--s = '0';
        while (num) {
-               *--s = (num % 10) + '0';
+               *--s = (char)(num % 10) + '0';
                num /= 10;
        }
        return s;
@@ -1264,7 +1264,6 @@ void *_realloc_array(void *ptr, unsigned int size, unsigned long num)
 {
        if (num >= MALLOC_MAX/size)
                return NULL;
-       /* No realloc should need this, but just in case... */
        if (!ptr)
                return malloc(size * num);
        return realloc(ptr, size * num);