$OpenBSD: patch-c4_c,v 1.2 2003/04/14 16:03:01 avsm Exp $ --- c4.c.orig Mon Apr 14 16:53:17 2003 +++ c4.c Mon Apr 14 16:54:01 2003 @@ -11,6 +11,8 @@ * BITNET: tcjones@WATER.bitnet * Canadian domain: tcjones@dragon.uwaterloo.ca * + * Patched by Joel Sutton, 15th April 1997 + * Changed gets calls to fgets. Changed inital prompt slightly. */ #include @@ -219,7 +221,7 @@ ask_turn() register char *cp; printf("Would you like to go first? (yes/no) -> "); - if (!gets(line)){ + if (!fgets(line, sizeof line, stdin)){ plot_finish(); fprintf(stderr, "Could not read input line.\n"); goodbye(); @@ -620,8 +622,8 @@ ask_help() } } - printf("Do you need help (n/y)? -> "); - if (!gets(line)){ + printf("Do you need help (y/n)? -> "); + if (!fgets(line, sizeof line, stdin)){ fprintf(stderr, "Could not read input line\n"); goodbye(); }