xbps-bin/question.c: use sizeof().

This commit is contained in:
Juan RP 2011-01-24 19:26:52 +01:00
parent 0feae4fa20
commit 6b4c6970a3

View File

@ -69,7 +69,7 @@ question(bool preset, const char *fmt, va_list ap)
else
fprintf(stderr, " %s ", "[yes/NO]");
if (fgets(response, 32, stdin)) {
if (fgets(response, sizeof(response), stdin)) {
(void)strtrim(response);
if (strlen(response) == 0)
return preset;