ogajduse / rpms / texlive

Forked from rpms/texlive 6 years ago
Clone
0661363
diff -up source/texk/devnag/src/devnag.c.format source/texk/devnag/src/devnag.c
0661363
--- source/texk/devnag/src/devnag.c.format	2013-12-22 17:03:35.000000000 +0100
0661363
+++ source/texk/devnag/src/devnag.c	2013-12-26 20:13:56.390766885 +0100
0661363
@@ -2395,7 +2395,7 @@ void put_macro(short macro) {
0661363
 void err_ill(const char *str) {
0661363
    fprintf(stderr, "Error: illegal character(s) \"%s\" detected at line %d:\n",
0661363
 	  str, linenumber);
0661363
-   fprintf(stderr, inbuf);
0661363
+   fprintf(stderr, "%s", inbuf);
0661363
    exit(1);
0661363
 }
0661363
 
0661363
diff -up source/texk/dvidvi/dvidvi.c.format source/texk/dvidvi/dvidvi.c
0661363
--- source/texk/dvidvi/dvidvi.c.format	2013-12-22 17:03:36.000000000 +0100
0661363
+++ source/texk/dvidvi/dvidvi.c	2013-12-26 20:13:56.390766885 +0100
0661363
@@ -327,7 +327,7 @@ static void stringdvibuf(integer p, inte
0661363
  *   Print a usage error messsage, and quit.
0661363
  */
0661363
 static void usage(void) {
0661363
-   (void)fprintf(stderr,banner);
0661363
+   (void)fprintf(stderr,"%s",banner);
0661363
    (void)fprintf(stderr,"Usage:  dvidvi [options] input[.dvi] [output]\n");
0661363
    (void)fprintf(stderr,"where options are:\n");
0661363
    (void)fprintf(stderr,"    [-f n] first page printed     [-l n] last page printed\n");
0661363
@@ -806,7 +806,7 @@ default:
0661363
       } /* else argument with '-' */
0661363
    }  /* for */
0661363
    if (*iname == 0) {
0661363
-       (void)fprintf(stderr, banner) ;
0661363
+       (void)fprintf(stderr, "%s", banner) ;
0661363
        error("! no input file specified");
0661363
    }
0661363
    /* Inserted by djc@dsmail.hmi.de 3.8.1994 */
0661363
@@ -817,7 +817,7 @@ default:
0661363
    }
0661363
 
0661363
    if (*oname != 0 && !quiet) {
0661363
-       (void)fprintf(stderr, banner) ;
0661363
+       (void)fprintf(stderr, "%s", banner) ;
0661363
        (void)fprintf(stderr, "%s -> %s\n",iname,oname);
0661363
        temp = nextstring ;
0661363
    }
0661363
diff -up source/texk/dvi2tty/dvi2tty-5.3.4/DVI.format source/texk/dvi2tty/dvi2tty-5.3.4/DVI
0661363
diff -up source/texk/ps2pkm/objects.h.format source/texk/ps2pkm/objects.h
0661363
--- source/texk/ps2pkm/objects.h.format	2013-12-22 17:03:29.000000000 +0100
0661363
+++ source/texk/ps2pkm/objects.h	2013-12-26 20:13:56.390766885 +0100
0661363
@@ -232,7 +232,7 @@ struct xobject {
0661363
 /*SHARED*/
0661363
 /* NDW: personally, I want to see status and error messages! */
0661363
 #define IfTrace0(condition,model)                                 \
0661363
-        {if (condition) printf(model);}
0661363
+        {if (condition) printf("%s",model);}
0661363
 #define IfTrace1(condition,model,arg0)                            \
0661363
         {if (condition) printf(model,arg0);}
0661363
 #define IfTrace2(condition,model,arg0,arg1)                       \
0661363
diff -up source/texk/web2c/cwebboot.cin.format source/texk/web2c/cwebboot.cin
0661363
--- source/texk/web2c/cwebboot.cin.format	2013-12-22 17:03:30.000000000 +0100
0661363
+++ source/texk/web2c/cwebboot.cin	2013-12-26 20:13:56.390766885 +0100
0661363
@@ -1090,7 +1090,7 @@ void
0661363
  fatal(const char*s,const char*t)
0661363
 #line 1182 "cwebdir/common.w"
0661363
 {
0661363
-if(*s)printf(s);
0661363
+if(*s)printf("%s",s);
0661363
 err_print(t);
0661363
 history= fatal_message;exit(wrap_up());
0661363
 }
0661363
diff -up source/texk/web2c/cwebdir/common.c.format source/texk/web2c/cwebdir/common.c
0661363
--- source/texk/web2c/cwebdir/common.c.format	2013-12-22 17:03:31.000000000 +0100
0661363
+++ source/texk/web2c/cwebdir/common.c	2013-12-26 20:13:56.391766888 +0100
0661363
@@ -1063,7 +1063,7 @@ void
0661363
 fatal(s,t)
0661363
 char*s,*t;
0661363
 {
0661363
-if(*s)printf(s);
0661363
+if(*s)printf("%s",s);
0661363
 err_print(t);
0661363
 history= fatal_message;exit(wrap_up());
0661363
 }
0661363
diff -up source/texk/web2c/cwebdir/common.w.format source/texk/web2c/cwebdir/common.w
0661363
--- source/texk/web2c/cwebdir/common.w.format	2013-12-22 17:03:31.000000000 +0100
0661363
+++ source/texk/web2c/cwebdir/common.w	2013-12-26 20:13:56.391766888 +0100
0661363
@@ -1180,7 +1180,7 @@ concatenated to print the final error me
0661363
 fatal(s,t)
0661363
   char *s,*t;
0661363
 {
0661363
-  if (*s) printf(s);
0661363
+  if (*s) printf("%s",s);
0661363
   err_print(t);
0661363
   history=fatal_message; exit(wrap_up());
0661363
 }
0661363
diff -up source/texk/web2c/cwebdir/cweave.w.format source/texk/web2c/cwebdir/cweave.w
0661363
--- source/texk/web2c/cwebdir/cweave.w.format	2013-12-22 17:03:31.000000000 +0100
0661363
+++ source/texk/web2c/cwebdir/cweave.w	2013-12-26 20:13:56.392766891 +0100
0661363
@@ -1784,7 +1784,7 @@ void
0661363
 print_cat(c) /* symbolic printout of a category */
0661363
 eight_bits c;
0661363
 {
0661363
-  printf(cat_name[c]);
0661363
+  printf("%s",cat_name[c]);
0661363
 }
0661363
 
0661363
 @ The token lists for translated \TEX/ output contain some special control
0661363
diff -up source/texk/web2c/omegafonts/error_routines.c.format source/texk/web2c/omegafonts/error_routines.c
0661363
--- source/texk/web2c/omegafonts/error_routines.c.format	2013-12-22 17:03:30.000000000 +0100
0661363
+++ source/texk/web2c/omegafonts/error_routines.c	2013-12-26 20:13:56.392766891 +0100
0661363
@@ -36,7 +36,7 @@ void
0661363
 lex_error_0(const_string fmt)
0661363
 {
0661363
     fprintf(stderr, "line %d (lexing): ", line_number);
0661363
-    fprintf(stderr, fmt);
0661363
+    fprintf(stderr, "%s", fmt);
0661363
     fprintf(stderr, "\n");
0661363
 }
0661363
 
0661363
@@ -68,7 +68,7 @@ void
0661363
 yyerror(const_string fmt)
0661363
 {
0661363
     fprintf(stderr, "line %d (parsing): ", line_number);
0661363
-    fprintf(stderr, fmt);
0661363
+    fprintf(stderr, "%s", fmt);
0661363
     fprintf(stderr, "\n");
0661363
 }
0661363
 
0661363
@@ -77,7 +77,7 @@ void
0661363
 warning_0(const_string fmt)
0661363
 {
0661363
     fprintf(stderr, "line %d (warning): ", line_number);
0661363
-    fprintf(stderr, fmt);
0661363
+    fprintf(stderr, "%s", fmt);
0661363
     fprintf(stderr, "\n");
0661363
 }
0661363
 
0661363
@@ -125,7 +125,7 @@ void
0661363
 fatal_error_0(const_string fmt)
0661363
 {
0661363
     fprintf(stderr, "line %d (fatal): ", line_number);
0661363
-    fprintf(stderr, fmt);
0661363
+    fprintf(stderr, "%s", fmt);
0661363
     fprintf(stderr, "\n");
0661363
     exit(1);
0661363
 }
0661363
@@ -161,7 +161,7 @@ void
0661363
 internal_error_0(const_string fmt)
0661363
 {
0661363
     fprintf(stderr, "line %d (internal): ", line_number);
0661363
-    fprintf(stderr, fmt);
0661363
+    fprintf(stderr, "%s", fmt);
0661363
     fprintf(stderr, "\n");
0661363
     exit(2);
0661363
 }
0661363
diff -up source/texk/web2c/omegafonts/out_routines.c.format source/texk/web2c/omegafonts/out_routines.c
0661363
--- source/texk/web2c/omegafonts/out_routines.c.format	2013-12-22 17:03:30.000000000 +0100
0661363
+++ source/texk/web2c/omegafonts/out_routines.c	2013-12-26 20:13:56.392766891 +0100
0661363
@@ -383,5 +383,5 @@ out_digits(unsigned counter)
0661363
 void
0661363
 out(const_string sval)
0661363
 {
0661363
-	fprintf(file_output, sval);
0661363
+	fprintf(file_output, "%s", sval);
0661363
 }
0661363
diff -up source/texk/web2c/tiedir/tie.c.format source/texk/web2c/tiedir/tie.c
0661363
--- source/texk/web2c/tiedir/tie.c.format	2013-12-22 17:03:31.000000000 +0100
0661363
+++ source/texk/web2c/tiedir/tie.c	2013-12-26 20:13:56.392766891 +0100
0661363
@@ -27,14 +27,14 @@
0661363
  \
0661363
 
0661363
 #define term_out stdout
0661363
-#define print(a)fprintf(term_out,a)
0661363
+#define print(a)fprintf(term_out,"%s",a)
0661363
 #define print2(a,b)fprintf(term_out,a,b)
0661363
 #define print3(a,b,c)fprintf(term_out,a,b,c)
0661363
 #define print_c(v)fputc(v,term_out);
0661363
 #define new_line(v)fputc('\n',v)
0661363
 #define term_new_line new_line(term_out) \
0661363
 
0661363
-#define print_ln(v){fprintf(term_out,v);term_new_line;} \
0661363
+#define print_ln(v){fprintf(term_out,"%s",v);term_new_line;} \
0661363
 
0661363
 #define print2_ln(a,b){print2(a,b);term_new_line;}
0661363
 #define print3_ln(a,b,c){print3(a,b,c);term_new_line;} \
0661363
diff -up source/texk/web2c/tiedir/tie.w.format source/texk/web2c/tiedir/tie.w
0661363
--- source/texk/web2c/tiedir/tie.w.format	2013-12-22 17:03:31.000000000 +0100
0661363
+++ source/texk/web2c/tiedir/tie.w	2013-12-26 20:13:56.393766894 +0100
0661363
@@ -465,7 +465,7 @@ for terminating an output line and writi
0661363
 @d new_line(v)  fputc('\n',v) /* start new line */
0661363
 @d term_new_line  new_line(term_out)
0661363
 	/* start new line of the terminal */
0661363
-@d print_ln(v)  {fprintf(term_out,v);term_new_line;}
0661363
+@d print_ln(v)  {fprintf(term_out,"%s",v);term_new_line;}
0661363
 	/* `|print|' and then start new line */
0661363
 @d print2_ln(a,b)  {print2(a,b);term_new_line;} /* same with two arguments */
0661363
 @d print3_ln(a,b,c)  {print3(a,b,c);term_new_line;}