From c3af1c1e02676ef27e46a98578f218e7ef7f1513 Mon Sep 17 00:00:00 2001 From: Yongqin Liu Date: Mon, 7 Dec 2015 00:21:16 +0800 Subject: dhry_1.c: change to use fgets instead of gets since gets is defined as deprecated on android. and will cause problem when build with linaro gcc5.2 Change-Id: I6b894b4aee507066afbdd52e8691b3a45eaee878 Signed-off-by: Yongqin Liu --- dhry_1.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/dhry_1.c b/dhry_1.c index 2ed964c..54cc1f5 100644 --- a/dhry_1.c +++ b/dhry_1.c @@ -460,36 +460,36 @@ int Int_Glob; { printf ("Enter the following which will be added with results to file DHRY.TXT\n"); printf ("When submitting a number of results you need only provide details once\n"); - printf ("but a cross reference such as an abbreviated CPU type would be useful.\n"); + printf ("but a cross reference such as an abbreviated CPU type would be useful.\n"); printf ("You can kill (exit or close) the program now and no data will be added.\n\n"); - + printf ("PC Supplier/model ? "); - gets(general[1]); - + fgets(general[1], 80, stdin); + printf ("CPU chip ? "); - gets(general[2]); - + fgets(general[3], 80, stdin); + printf ("Clock MHz ? "); - gets(general[3]); - + fgets(general[3], 80, stdin); + printf ("Cache size ? "); - gets(general[4]); - + fgets(general[4], 80, stdin); + printf ("Chipset & H/W options ? "); - gets(general[5]); - + fgets(general[5], 80, stdin); + printf ("OS/DOS version ? "); - gets(general[6]); - + fgets(general[6], 80, stdin); + printf ("Your name ? "); - gets(general[7]); - + fgets(general[7], 80, stdin); + printf ("Company/Location ? "); - gets(general[8]); - + fgets(general[8], 80, stdin); + printf ("E-mail address ? "); - gets(general[0]); - } + fgets(general[0], 80, stdin); + } /************************************************************************ * Add results to output file Dhry.txt * ************************************************************************/ -- cgit v1.2.3