File xbench-0.2-gets.patch of Package xbench

--- main.c
+++ main.c
@@ -181,18 +181,18 @@
 	printf("\n");
 	fprintf(stderr, "describe brand/configuration of SERVER machine (1 line)\n");
 	fprintf(stderr, "(example: XYZ-891 with steam-engine [return]\n");
-	gets(buffer);
-	printf("server: %s\n", buffer);
+ 	fgets(buffer, sizeof buffer, stdin);
+	printf("server: %s", buffer);
 	fprintf(stderr, "describe brand/configuration of CLIENT machine (1 line)\n");
-	gets(buffer);
-	printf("client: %s\n", buffer);
+ 	fgets(buffer, sizeof buffer, stdin);
+	printf("client: %s", buffer);
 	fprintf(stderr, "describe communication used (1 line)\n");
 	fprintf(stderr, "(example: 10Mb ether or 19600 slip ..)\n");
-	gets(buffer);
-	printf("communication: %s\n", buffer);
+ 	fgets(buffer, sizeof buffer, stdin);
+	printf("communication: %s", buffer);
 	fprintf(stderr, "any additional notes (1 line)\n");
-	gets(buffer);
-	printf("notes: %s\n", buffer);
+ 	fgets(buffer, sizeof buffer, stdin);
+	printf("notes: %s", buffer);
 	printf("\n");
 	printf("==================================================\n");
 	printf("SERVER INFORMATION\n");