[Pkg-libvirt-commits] [SCM] VirtViewer Debian packaging branch, master, updated. debian/0.5.6-1

Guido Günther agx at sigxcpu.org
Tue Jun 25 10:34:01 UTC 2013


The following commit has been merged in the master branch:
commit 6a48df3bc3ef82e20304d36f45a891b649859e75
Author: Guido Günther <agx at sigxcpu.org>
Date:   Tue Jun 25 12:29:21 2013 +0200

    Fix compilation

diff --git a/debian/patches/0001-Use-format-string.patch b/debian/patches/0001-Use-format-string.patch
new file mode 100644
index 0000000..350195f
--- /dev/null
+++ b/debian/patches/0001-Use-format-string.patch
@@ -0,0 +1,26 @@
+From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx at sigxcpu.org>
+Date: Tue, 25 Jun 2013 12:23:52 +0200
+Subject: Use format string
+
+to fix
+
+virt-viewer.c: In function 'virt_viewer_connect':
+virt-viewer.c:686:13: error: format not a string literal and no format arguments [-Werror=format-security]
+             g_warning(error->message);
+---
+ src/virt-viewer.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/virt-viewer.c b/src/virt-viewer.c
+index 8d4ec62..f4d6aa5 100644
+--- a/src/virt-viewer.c
++++ b/src/virt-viewer.c
+@@ -683,7 +683,7 @@ virt_viewer_connect(VirtViewerApp *app)
+ 
+     if (!virt_viewer_app_initial_connect(app, &error)) {
+         if (error)
+-            g_warning(error->message);
++            g_warning("%s", error->message);
+         g_clear_error(&error);
+         return -1;
+     }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bfc766e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Use-format-string.patch

-- 
VirtViewer Debian packaging



More information about the Pkg-libvirt-commits mailing list