summaryrefslogtreecommitdiff
path: root/cad/sis/files/patch-ap
blob: 7261c71fe60e3aa4d3b366b17b17398eb95c15a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- sis/astg/bwd_com.c.orig	Sat Jul 16 07:56:43 1994
+++ sis/astg/bwd_com.c	Thu Aug  3 22:34:02 2000
@@ -1207,7 +1207,7 @@
 	 ns = stg_get_num_states (stg);
 	 fprintf (siserr, "give the codes in the form state_name binary_code\n");
 	 for (i = 0; i < ns; i++) {
-		gets (buf1);
+		fgets (buf1, sizeof(buf1), stdin);
 		do {
 			sscanf (buf1, "%s %s", buf2, buf3);
 			state = stg_get_state_by_name (stg, buf2);