office-gobmx/external/coinmp/werror-format-security.patch.0
Matúš Kukan 197f2016e3 fdo#77313: coinmp: error: format not a string literal and no format arguments
Change-Id: I044f12c4b7b28963d6d491d5e5850ddb59a564c4
2014-05-22 08:10:19 +02:00

12 lines
519 B
Text

diff -ur coinmp.org/CoinUtils/src/CoinMessageHandler.cpp coinmp/CoinUtils/src/CoinMessageHandler.cpp
--- CoinUtils/src/CoinMessageHandler.cpp 2014-05-21 23:14:01.384874167 +0200
+++ CoinUtils/src/CoinMessageHandler.cpp 2014-05-21 23:14:47.708874712 +0200
@@ -820,7 +820,7 @@
sprintf(messageOut_,g_format_,doublevalue);
if (next != format_+2) {
messageOut_+=strlen(messageOut_);
- sprintf(messageOut_,format_+2);
+ sprintf(messageOut_,"%s",format_+2);
}
}
messageOut_+=strlen(messageOut_);