From 9429674509d5604229ee2567990a2e720a0459c6 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Mon, 18 Jun 2018 00:15:26 +0200 Subject: [PATCH] Fixed -Werror=format-security issue. This fixes #495. --- src/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index c995eb3..46d6fcb 100644 --- a/src/main.c +++ b/src/main.c @@ -1834,19 +1834,20 @@ static gboolean on_permission_request(WebKitWebView *webview, char *msg = NULL; if (WEBKIT_IS_GEOLOCATION_PERMISSION_REQUEST(request)) { - msg = "Page wants to request your location"; + msg = "request your location"; } else if (WEBKIT_IS_USER_MEDIA_PERMISSION_REQUEST(request)) { if (webkit_user_media_permission_is_for_audio_device(WEBKIT_USER_MEDIA_PERMISSION_REQUEST(request))) { - msg = "Page wants to access the microphone"; + msg = "access the microphone"; } else if (webkit_user_media_permission_is_for_video_device(WEBKIT_USER_MEDIA_PERMISSION_REQUEST(request))) { - msg = "Page wants to access you webcam"; + msg = "access you webcam"; } } else { return FALSE; } dialog = gtk_message_dialog_new(GTK_WINDOW(c->window), GTK_DIALOG_MODAL, - GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, msg); + GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "Page wants to %s", + msg); gtk_widget_show(dialog); result = gtk_dialog_run(GTK_DIALOG(dialog)); -- 2.20.1