Commit f7a48af8 authored by Michael Banck's avatar Michael Banck

* debian/patches/33_format-security.dpatch: New patch, fixes build error

  with -Werror=format-security, thanks to Ilya Barygin; Closes: #643463.
parent 7e540896
qutemol (0.4.1~cvs20081111-2) UNRELEASED; urgency=low
*
* debian/patches/33_format-security.dpatch: New patch, fixes build error
with -Werror=format-security, thanks to Ilya Barygin; Closes: #643463.
-- Michael Banck <mbanck@debian.org> Tue, 01 Nov 2011 17:48:15 +0100
......
......@@ -30,3 +30,4 @@
30_matrix33.h.dpatch
31_reset_local_for_shaders.dpatch
32_stdio_includes.dpatch
33_format-security.dpatch
#! /bin/sh /usr/share/dpatch/dpatch-run
## 33_format-security.dpatch by Ilya Barygin <randomaction@ubuntu.com>
##
## 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment