Allow --block-size's size to have a suffix.
[rsync.git] / util2.c
diff --git a/util2.c b/util2.c
index e7c70c1fb3f899dcc85dc9685367608000d53703..9566b8db18bd1af8e2a4cfa4153b6e97db524295 100644 (file)
--- a/util2.c
+++ b/util2.c
@@ -77,6 +77,8 @@ char *num_to_byte_string(ssize_t num)
        char buf[128], *s = buf + sizeof buf - 1;
 
        *s = '\0';
+       if (!num)
+               *--s = '0';
        while (num) {
                *--s = (char)(num % 10) + '0';
                num /= 10;