From 01ac4158ed47f82b0d7ee7015d1cc38943d86eee Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 30 Dec 2005 13:22:27 -0500 Subject: [PATCH] COMP: Remove warning about argument not being int --- Utilities/cmtar/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/cmtar/util.c b/Utilities/cmtar/util.c index 494847bcc..94cf54464 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] = ' '; }