summaryrefslogtreecommitdiffstats
path: root/redhat/applications/k9copy/k9copy-3.5.13-fix_format_not_string_literal.patch
blob: db4c99a639a103a099ac72493f6a63fad3b01322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
commit 3bfc84b0fc3558c377e2f5a99548a6903a9ee7c3
Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>
Date:   1336066302 -0500

    Fix 'format not a string literal' error
    Clean up warning

diff --git a/libk9copy/k9burndvd.cpp b/libk9copy/k9burndvd.cpp
index e6f6675..9f95352 100644
--- a/libk9copy/k9burndvd.cpp
+++ b/libk9copy/k9burndvd.cpp
@@ -112,7 +112,7 @@ void k9BurnDVD::mkisoSizeStdout(KProcess *proc, char *buffer, int buflen) {
     ;
 }
 
-const TQString &k9BurnDVD::getImageSize() {
+const TQString k9BurnDVD::getImageSize() {
     TQString c;
     c="mkisofs";
     proc2=new k9Process;
@@ -215,8 +215,8 @@ void k9BurnDVD::burnWithGenisoimage() {
                 if ( KMessageBox::warningContinueCancel ( 0,i18n("Insert a recordable DVD"), i18n("DVD burning"))!=KMessageBox::Continue)
                     cancelled=true;
             }
-            qDebug(proc->debug());
-        }        
+            qDebug("%s", proc->debug());
+        }
 
 
         if (!cancelled) {
@@ -239,7 +239,7 @@ void k9BurnDVD::burnWithGenisoimage() {
                     }
                 }
             }
-        }      
+        }
     }
 }
 
diff --git a/libk9copy/k9burndvd.h b/libk9copy/k9burndvd.h
index fc2edce..94e1e71 100644
--- a/libk9copy/k9burndvd.h
+++ b/libk9copy/k9burndvd.h
@@ -71,7 +71,7 @@ private:
     void getWodimCmd(k9Process *proc);
 
     void burnWithK3b();
-    const TQString &getImageSize();
+    const TQString getImageSize();
     TQString imageSize;
     TQString m_speed;
 private slots: // Private slots