From e90a457c46ca9463bf77cab2d34513c45269c938 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 8 Sep 2022 12:42:50 +0200 Subject: [PATCH] * src/xrdb.c (main) [TESTRM]: Replace gets with fgets. --- src/xrdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2