From: Stefan Kangas Date: Thu, 8 Sep 2022 10:42:50 +0000 (+0200) Subject: * src/xrdb.c (main) [TESTRM]: Replace gets with fgets. X-Git-Tag: emacs-29.0.90~1856^2~666 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e90a457c46ca9463bf77cab2d34513c45269c938;p=emacs.git * src/xrdb.c (main) [TESTRM]: Replace gets with fgets. --- diff --git a/src/xrdb.c b/src/xrdb.c index faeea04a539..5ff25dde148 100644 --- a/src/xrdb.c +++ b/src/xrdb.c @@ -589,14 +589,14 @@ main (int argc, char **argv) char query_class[90]; printf ("Name: "); - gets (query_name); + fgets (query_name, 90, stdin); if (strlen (query_name)) { char *value; printf ("Class: "); - gets (query_class); + fgets (query_class, 90, stdin); value = x_get_string_resource (&xdb, query_name, query_class);