jlec        15/03/19 14:32:00

  Added:                wordnet-3.0-stubs_c.patch
                        wordnet-3.0-format-security.patch
  Log:
  Fix tcl/tk slotting; bump EAPI=5; fix for format-security
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
B9D4F231BD1558AB!)

Revision  Changes    Path
1.1                  app-dicts/wordnet/files/wordnet-3.0-stubs_c.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-dicts/wordnet/files/wordnet-3.0-stubs_c.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-dicts/wordnet/files/wordnet-3.0-stubs_c.patch?rev=1.1&content-type=text/plain

Index: wordnet-3.0-stubs_c.patch
===================================================================
diff -urNad wordnet-3.0/src/stubs.c.orig wordnet-3.0/src/stubs.c
--- wordnet-3.0/src/stubs.c.orig        2007-01-04 18:47:55.000000000 +0100
+++ wordnet-3.0/src/stubs.c     2007-01-20 19:01:19.000000000 +0100
@@ -14,7 +14,7 @@
 #include <tk.h>
 #include <wn.h>
 
-static char *Id = "$Id: wordnet-3.0-stubs_c.patch,v 1.1 2015/03/19 14:32:00 
jlec Exp $";
+static const char Id[] = "$Id: wordnet-3.0-stubs_c.patch,v 1.1 2015/03/19 
14:32:00 jlec Exp $";
 
 static char resultbuf[SEARCHBUF];
 



1.1                  app-dicts/wordnet/files/wordnet-3.0-format-security.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-dicts/wordnet/files/wordnet-3.0-format-security.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-dicts/wordnet/files/wordnet-3.0-format-security.patch?rev=1.1&content-type=text/plain

Index: wordnet-3.0-format-security.patch
===================================================================
 lib/binsrch.c | 4 ++--
 src/wn.c      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/binsrch.c b/lib/binsrch.c
index 8b71216..9ac51a7 100644
--- a/lib/binsrch.c
+++ b/lib/binsrch.c
@@ -193,7 +193,7 @@ char *replace_line(char *new_line, char *searchkey, FILE 
*fp)
     copyfile(fp, tfp);
     if (fseek(fp, offset, 0) == -1)
        return(NULL);           /* could not seek to offset */
-    fprintf(fp, new_line);     /* write line */
+    fprintf(fp, "%s", new_line);       /* write line */
     rewind(tfp);
     copyfile(tfp, fp);
 
@@ -220,7 +220,7 @@ char *insert_line(char *new_line, char *searchkey, FILE *fp)
     copyfile(fp, tfp);
     if (fseek(fp, offset, 0) == -1)
        return(NULL);           /* could not seek to offset */
-    fprintf(fp, new_line);     /* write line */
+    fprintf(fp, "%s", new_line);       /* write line */
     rewind(tfp);
     copyfile(tfp, fp);
 
diff --git a/src/wn.c b/src/wn.c
index 004e1e6..398632f 100644
--- a/src/wn.c
+++ b/src/wn.c
@@ -284,7 +284,7 @@ static void printsearches(char *word, int dbase, unsigned 
long search)
            printf("\t");
            printf(searchstr[j].template,
                   partchars[dbase], partchars[dbase]);
-           printf(searchstr[j].helpstr);
+           printf("%s", searchstr[j].helpstr);
            printf("\n");
        }
 }
@@ -345,7 +345,7 @@ static int getoptidx(char *searchtype)
 
 static int error_message(char *msg)
 {
-    fprintf(stderr, msg);
+    fprintf(stderr, "%s", msg);
     return(0);
 }
 




Reply via email to