From 6f8c69f763e9a08bf42672d944df24c759d0966c Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 6 Nov 2011 09:19:25 -0500 Subject: [PATCH] Crappy version using gets instead of fgets --- ex24.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ex24.c b/ex24.c index 5f4033d..3d7f4a8 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 = fgets(you.first_name, MAX_DATA-1, stdin); + in = gets(you.first_name); check(in != NULL, "Failed to read first name."); printf("What's your Last Name? "); - in = fgets(you.last_name, MAX_DATA-1, stdin); + in = gets(you.last_name); check(in != NULL, "Failed to read last name."); printf("How old are you? ");