mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +00:00
Also use %zu to print the allocation size when malloc(3) fails.
Discussed with: phk
This commit is contained in:
parent
25860b612f
commit
d81c1141f6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189703
@ -226,7 +226,7 @@ main(int argc, char * const argv[])
|
||||
|
||||
buf = malloc(bigsize);
|
||||
if (buf == NULL)
|
||||
err(1, "Cannot allocate %jd bytes buffer", (intmax_t)bigsize);
|
||||
err(1, "Cannot allocate %zu bytes buffer", bigsize);
|
||||
|
||||
if (argc > 1) {
|
||||
fdw = open(argv[1], flags, DEFFILEMODE);
|
||||
|
Loading…
Reference in New Issue
Block a user