From 74e3d00e4450c77a9fe4c82e659ee5a901fa4976 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 6 Nov 2011 09:23:44 -0500 Subject: [PATCH] Setting back to correct version using fgets --- ex24.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ex24.c b/ex24.c index 3d7f4a8..5f4033d 100644 --- a/ex24.c +++ b/ex24.c @@ -28,11 +28,11 @@ int main(int argc, char *argv[]) char *in = NULL; printf("What's your First Name? "); - in = gets(you.first_name); + in = fgets(you.first_name, MAX_DATA-1, stdin); check(in != NULL, "Failed to read first name."); printf("What's your Last Name? "); - in = gets(you.last_name); + in = fgets(you.last_name, MAX_DATA-1, stdin); check(in != NULL, "Failed to read last name."); printf("How old are you? ");