Kaydet (Commit) 197f2016 authored tarafından Matúš Kukan's avatar Matúš Kukan

fdo#77313: coinmp: error: format not a string literal and no format arguments

Change-Id: I044f12c4b7b28963d6d491d5e5850ddb59a564c4
üst 985f2b8b
......@@ -18,6 +18,7 @@ $(eval $(call gb_UnpackedTarball_fix_end_of_line,coinmp,\
$(eval $(call gb_UnpackedTarball_add_patches,coinmp,\
external/coinmp/android.build.patch.1 \
external/coinmp/no-binaries.patch.1 \
external/coinmp/werror-format-security.patch.0 \
external/coinmp/windows.build.patch.1 \
))
......
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_);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment