[virt-tools-list] [virt-viewer PATCH] Use format string
Christophe Fergeau
cfergeau at redhat.com
Tue Jun 25 10:55:59 UTC 2013
On Tue, Jun 25, 2013 at 12:32:31PM +0200, Guido Günther wrote:
> 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);
Thanks, ACK
Christophe
> ---
> 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 5dea5b6..951a42b 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;
> }
> --
> 1.8.3.1
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20130625/db39da08/attachment.sig>
More information about the virt-tools-list
mailing list