From 72b9205d2c738c30c4bde860def3970124eddeba Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Fri, 23 Dec 2016 01:21:12 -0600 Subject: [PATCH] fix syntax errors in calls to g_*() logging functions --- src/greeter.c | 2 +- src/webkit2-extension.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/greeter.c b/src/greeter.c index 173bff5..94f64a9 100644 --- a/src/greeter.c +++ b/src/greeter.c @@ -172,7 +172,7 @@ show_theme_recovery_modal() { fallback_theme = "simple"; } - g_warning(log_msg); + g_warning("%s", log_msg); gtk_widget_destroy(dialog); webkit_web_view_load_uri( diff --git a/src/webkit2-extension.c b/src/webkit2-extension.c index 0f6fc64..b4f12a1 100644 --- a/src/webkit2-extension.c +++ b/src/webkit2-extension.c @@ -1812,7 +1812,7 @@ get_config_option_as_string(const gchar *section, const gchar *key) { value = g_key_file_get_string(keyfile, section, key, &err); if (NULL != err) { - g_error(err->message); + g_error("%s", err->message); g_error_free(err); g_free(value); return "";