COMP: Remove warning about argument not being int

This commit is contained in:
Andy Cedilnik 2005-12-30 13:22:27 -05:00
parent 2804a0d7db
commit 01ac4158ed

View File

@ -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] = ' ';
}