xbps-bin/question.c: use sizeof().
This commit is contained in:
parent
0feae4fa20
commit
6b4c6970a3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user