diff --git a/bin/xbps-bin/question.c b/bin/xbps-bin/question.c index 0f5d3838..1ff104fd 100644 --- a/bin/xbps-bin/question.c +++ b/bin/xbps-bin/question.c @@ -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;