File: gcc-4.6_format-security.patch

package info (click to toggle)
readseq 1-9
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 628 kB
  • sloc: ansic: 7,748; makefile: 154; sh: 32
file content (27 lines) | stat: -rw-r--r-- 810 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Author: Andreas Tille <tille@debian.org>
Date: Fri, 28 Oct 2011 16:15:21 +0200
Closes: #643465
Description: When using -Werror=format-security with gcc-4.6 some function
 calls are throwing erros.  This patch replates [f]printf by [f]puts to
 fix the problem

--- readseq-1.orig/readseq.c
+++ readseq-1/readseq.c
@@ -335,7 +335,7 @@
 {
   short   i, midi;
 
-  fprintf(stderr,title);
+  fputs(title, stderr);
   fprintf(stderr,
   "usage: readseq [-options] in.seq > out.seq\n");
   fprintf(stderr," options\n");
@@ -988,7 +988,7 @@
               if (seqout == 0) fprintf( foo,"\\\\\\\n");
               break;
             case kASN1:
-              if (seqout == 0) fprintf( foo, kASN1headline);
+              if (seqout == 0) fputs(kASN1headline, foo);
               break;
 
             case kPhylip: