summaryrefslogtreecommitdiff
path: root/app-i18n/canna/files/canna-overflow.patch
blob: ef3b6ad1b95d3f4c19e66db2b0132d7fb9263e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/cmd/catdic/rutil.c
+++ b/cmd/catdic/rutil.c
@@ -384,7 +384,7 @@
 	(void)fprintf(stderr,gettxt("cannacmd:205", 
     "Specified dictionary \"%s\" already exists. Do you overwrite it ? (y/n)"),
 		      dicname);
-	fgets(ans,80,stdin);
+	fgets(ans,sizeof(ans),stdin);
     } else {
 	(void)fprintf(stderr,gettxt("cannacmd:206", 
 	    "Specified dictionary \"%s\" already exists."),dicname);
@@ -474,7 +474,7 @@
     if (isatty(fileno(stdin)) != 0) {
 	(void)fprintf(stderr,gettxt("cannacmd:216", 
 "Personal learning file of dictionary \"%s\" exists. Do you overwrite it ? (y/n)"),dicname);
-	fgets(ans,80,stdin);
+	fgets(ans,sizeof(ans),stdin);
     } else {
 	(void)fprintf(stderr,gettxt("cannacmd:217", 
     "Personal learning file of system dictionary \"%s\" already exists."),