File: fix-format-error

package info (click to toggle)
r-bioc-hilbertvis 1.64.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,784 kB
  • sloc: ansic: 144; makefile: 13
file content (16 lines) | stat: -rw-r--r-- 654 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Michael R. Crusoe <crusoe@debian.org>
Subject: Fix error: format not a string literal and no format arguments [-Werror=format-security]
Bug-Debian: https://bugs.debian.org/1071342

Using the tip from https://fedoraproject.org/wiki/Format-Security-FAQ
--- r-bioc-hilbertvis.orig/src/make_wiggle_vector.c
+++ r-bioc-hilbertvis/src/make_wiggle_vector.c
@@ -13,7 +13,7 @@
       if( INTEGER(end)[i] < INTEGER(start)[i] ) {
          char buf[200];
 	 snprintf( buf, 200, "end[%d] < start[%d]", i+1, i+1 );
-         error( buf );
+         error("%", buf );
       }
       if( INTEGER(end)[i] > length(res) )
 	 error( "'chrlength' is too small" );