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" );
|