From: Eric S. Raymond Date: Sun, 25 Aug 2013 15:19:56 +0000 (-0400) Subject: Use a safer function. X-Git-Tag: 1.11~17 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=fae8c3e8037bca6a0f2e8a8251a4b9bcfd572ee5;p=vms-empire.git Use a safer function. --- 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 ();