diff options
-rw-r--r-- | Utilities/cmtar/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmtar/util.c b/Utilities/cmtar/util.c index 494847b..94cf544 100644 --- a/Utilities/cmtar/util.c +++ b/Utilities/cmtar/util.c @@ -163,7 +163,7 @@ oct_to_int(char *oct) void int_to_oct_nonull(int num, char *oct, size_t octlen) { - snprintf(oct, octlen, "%*lo", octlen - 1, (unsigned long)num); + snprintf(oct, octlen, "%*lo", (int)(octlen-1), (unsigned long)num); oct[octlen - 1] = ' '; } |