From fae8c3e8037bca6a0f2e8a8251a4b9bcfd572ee5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 25 Aug 2013 11:19:56 -0400 Subject: [PATCH] Use a safer function. --- term.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/term.c b/term.c index 08ce6b4..4af79c6 100644 --- a/term.c +++ b/term.c @@ -230,11 +230,9 @@ Get a string from the user, ignoring the current echo mode. void get_strq(char *buf, int sizep) { - sizep = sizep; /* size of buf, currently unused */ - (void) nocrmode (); (void) refresh (); - (void) getstr (buf); + (void) getnstr (buf, sizep); need_delay = false; info (0, 0, 0); (void) crmode (); -- 2.43.0