Package: mp3diags / 1.5.01-1

01-fix-format-not-a-string-literal.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Fix format not a string literal error.
Author: Josue Ortega <josue@debian.org>
Last-Update: 2016-08-03

--- a/src/Mp3TransformThread.cpp
+++ b/src/Mp3TransformThread.cpp
@@ -676,7 +676,7 @@
     {
         qDebug("Caught std::exception in Mp3TransformThread::transform()");
         traceToFile("Caught std::exception in Mp3TransformThread::transform()", 0);
-        qDebug(ex.what());
+        qDebug("%s", ex.what());
         traceToFile(ex.what(), 0);
         throw; // !!! needed to restore "erased" files when errors occur, because when an exception is thrown the destructors only get called if that exception is caught; so catching and rethrowing is not a "no-op"
     }