File: 01-fix-format-not-a-string-literal.patch

package info (click to toggle)
mp3diags 1.2.03-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 6,480 kB
  • ctags: 3,962
  • sloc: cpp: 34,090; makefile: 100; xml: 97; sh: 87
file content (15 lines) | stat: -rw-r--r-- 693 bytes parent folder | 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
@@ -662,7 +662,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"
     }