Fix compilation
Guido Günther
10 years ago
|
0 |
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
|
|
1 |
Date: Tue, 25 Jun 2013 12:23:52 +0200
|
|
2 |
Subject: Use format string
|
|
3 |
|
|
4 |
to fix
|
|
5 |
|
|
6 |
virt-viewer.c: In function 'virt_viewer_connect':
|
|
7 |
virt-viewer.c:686:13: error: format not a string literal and no format arguments [-Werror=format-security]
|
|
8 |
g_warning(error->message);
|
|
9 |
---
|
|
10 |
src/virt-viewer.c | 2 +-
|
|
11 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
12 |
|
|
13 |
diff --git a/src/virt-viewer.c b/src/virt-viewer.c
|
|
14 |
index 8d4ec62..f4d6aa5 100644
|
|
15 |
--- a/src/virt-viewer.c
|
|
16 |
+++ b/src/virt-viewer.c
|
|
17 |
@@ -683,7 +683,7 @@ virt_viewer_connect(VirtViewerApp *app)
|
|
18 |
|
|
19 |
if (!virt_viewer_app_initial_connect(app, &error)) {
|
|
20 |
if (error)
|
|
21 |
- g_warning(error->message);
|
|
22 |
+ g_warning("%s", error->message);
|
|
23 |
g_clear_error(&error);
|
|
24 |
return -1;
|
|
25 |
}
|
|
0 |
0001-Use-format-string.patch
|