| 1 |
Fromscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/patches/`33_format-security.patch`#From.: Ilya Barygin <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Subjectscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/patches/`33_format-security.patch`#Subject.: Fix warnings produced by -Werror=format-security |
| 3 |
|
| 4 |
--- a/src/pngSave.cppscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/upstream/`src/pngSave.cpp`: |
| 5 |
+++ b/src/pngSave.cppscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/upstream/`src/pngSave.cpp`: |
| 6 |
@@ -55,8 +55,8 @@ |
| 7 |
void trace(const char *st, const char *st2=NULL){ |
| 8 |
static FILE *f=NULL; |
| 9 |
if (!f) f=fopen("trace.txt","wt"); |
| 10 |
|
| 11 |
|
| 12 |
+ fprintf(f,"%s",st); |
| 13 |
+ if (st2) fprintf(f,"%s",st2); |
| 14 |
fflush(f); |
| 15 |
} |
| 16 |
|