From 6b4c6970a30bc9e1700f4209b6b882813c296a07 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 24 Jan 2011 19:26:52 +0100 Subject: [PATCH] xbps-bin/question.c: use sizeof(). --- bin/xbps-bin/question.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;