Correct cast for snprintf

This commit is contained in:
Andrew Alderwick 2022-01-07 00:06:42 +00:00
parent 91560c6d24
commit 0d242d704e
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ get_entry(char *p, Uint16 len, const char *pathname, const char *basename, int f
else if(S_ISDIR(st.st_mode))
return snprintf(p, len, "---- %s\n", basename);
else if(st.st_size < 0x10000)
return snprintf(p, len, "%04x %s\n", (Uint16)st.st_size, basename);
return snprintf(p, len, "%04x %s\n", (unsigned int)st.st_size, basename);
else
return snprintf(p, len, "???? %s\n", basename);
}