tags 643463 patch
thanks

Patch attached.
#! /bin/sh /usr/share/dpatch/dpatch-run
## 33_format-security.dpatch by Ilya Barygin <[email protected]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix warnings produced by -Werror=format-security

@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' 
'--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' 
qutemol-0.4.1~cvs20081111~/src/pngSave.cpp 
qutemol-0.4.1~cvs20081111/src/pngSave.cpp
--- qutemol-0.4.1~cvs20081111~/src/pngSave.cpp  2011-11-01 20:27:07.000000000 
+0400
+++ qutemol-0.4.1~cvs20081111/src/pngSave.cpp   2011-11-01 20:28:16.000000000 
+0400
@@ -55,8 +55,8 @@
 void trace(const char  *st, const char  *st2=NULL){
   static FILE *f=NULL;
   if (!f) f=fopen("trace.txt","wt");
-  fprintf(f,st);
-  if (st2) fprintf(f,st2);
+  fprintf(f,"%s",st);
+  if (st2) fprintf(f,"%s",st2);
   fflush(f);
 }
 

Reply via email to