]> git.pld-linux.org Git - packages/WordNet.git/blame - WordNet-build.patch
- separate -libs so whole dictionary is not required for development; release 5
[packages/WordNet.git] / WordNet-build.patch
CommitLineData
177aea78
AM
1--- WordNet-3.0/lib/binsrch.c~ 2006-11-29 22:02:21.000000000 +0100
2+++ WordNet-3.0/lib/binsrch.c 2014-06-03 12:12:58.435884045 +0200
3@@ -187,7 +187,7 @@
4 copyfile(fp, tfp);
5 if (fseek(fp, offset, 0) == -1)
6 return(NULL); /* could not seek to offset */
7- fprintf(fp, new_line); /* write line */
8+ fprintf(fp, "%s", new_line); /* write line */
9 rewind(tfp);
10 copyfile(tfp, fp);
11
12@@ -214,7 +214,7 @@
13 copyfile(fp, tfp);
14 if (fseek(fp, offset, 0) == -1)
15 return(NULL); /* could not seek to offset */
16- fprintf(fp, new_line); /* write line */
17+ fprintf(fp, "%s", new_line); /* write line */
18 rewind(tfp);
19 copyfile(tfp, fp);
20
21--- WordNet-3.0/src/wn.c~ 2006-11-30 22:40:26.000000000 +0100
22+++ WordNet-3.0/src/wn.c 2014-06-03 12:16:04.205515240 +0200
23@@ -283,7 +283,7 @@
24 printf("\t");
25 printf(searchstr[j].template,
26 partchars[dbase], partchars[dbase]);
27- printf(searchstr[j].helpstr);
28+ printf("%s", searchstr[j].helpstr);
29 printf("\n");
30 }
31 }
32@@ -344,7 +344,7 @@
33
34 static int error_message(char *msg)
35 {
36- fprintf(stderr, msg);
37+ fprintf(stderr, "%s", msg);
38 return(0);
39 }
40
This page took 0.561788 seconds and 4 git commands to generate.