fopencookie.3: printf()'s .* expects an int; cast accordingly

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2020-09-07 12:21:16 +02:00 committed by Michael Kerrisk
parent 7497e9d8c8
commit a1eb1a6a33
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ main(int argc, char *argv[])
break;
}
printf("/%.*s/\en", nread, buf);
printf("/%.*s/\en", (int) nread, buf);
}
exit(EXIT_SUCCESS);