bd89c633a4
Velena is a program playing connect-four based on the work of Victor Allis, who proved in 1986 that the first player can always win.
14 lines
435 B
Text
14 lines
435 B
Text
$NetBSD: patch-ad,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
|
|
|
|
--- database.c.orig 1997-07-27 17:44:50.000000000 +0200
|
|
+++ database.c 2007-07-25 01:52:55.000000000 +0200
|
|
@@ -698,7 +698,8 @@ void merge()
|
|
char filename[255];
|
|
|
|
printf("Enter name of file to merge: ");
|
|
- gets(filename);
|
|
+ if (fgets(filename, sizeof(filename), stdin) == NULL)
|
|
+ exit(0);
|
|
|
|
printf("\n");
|
|
printf("Sure you want to merge '%s' ? (Y/N)\n\n",filename);
|