Also use %zu to print the allocation size when malloc(3) fails.
Discussed with: phk
This commit is contained in:
parent
8578008810
commit
0385dbe697
@ -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