Also use %zu to print the allocation size when malloc(3) fails.

Discussed with:	phk
This commit is contained in:
ed 2009-03-11 17:40:39 +00:00
parent 8578008810
commit 0385dbe697

View File

@ -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);