Use %zu for size_t, like God intended.

This commit is contained in:
Dag-Erling Smørgrav 2004-02-18 21:51:02 +00:00
parent eae1afd9a2
commit 5476ba5545

View File

@ -157,7 +157,7 @@ stat_bytes(size_t bytes)
bytes /= 1024;
prefix++;
}
snprintf(str, sizeof str, "%4ju %cB", (uintmax_t)bytes, *prefix);
snprintf(str, sizeof str, "%4zu %cB", bytes, *prefix);
return (str);
}