Summary Files Commits Branches @commit @diff @stats
path: root / badwolf.c
diff options
context:
space:
mode:
Commit6b5f7edc9b3d420837a3035fb24760de54451c4d (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-02-04 07:37:51 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-02-04 07:58:15 +0100
Files918b1e6172eabb0692919bafaae06f03f1dcab7e /badwolf.c
goodwolf-6b5f7edc9b3d420837a3035fb24760de54451c4d.tar
goodwolf-6b5f7edc9b3d420837a3035fb24760de54451c4d.tar.gz
goodwolf-6b5f7edc9b3d420837a3035fb24760de54451c4d.zip
Parent186cee6c2b5d80046c71022d422f9df17bbd21d5 (diff)
badwolf.c: Always set a format in *printf calls
Potential bug found via printf-scan aka pscan
1 files changed, 3 insertions, 3 deletions
-rw-r--r--badwolf.c6
diff --git a/badwolf.c b/badwolf.c
index 580fedc..b6318b8 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -91,15 +91,15 @@ WebViewCb_web_process_terminated(WebKitWebView *webView,
switch(reason)
{
case WEBKIT_WEB_PROCESS_CRASHED:
- fprintf(stderr, _("the web process crashed.\n"));
+ fprintf(stderr, "%s", _("the web process crashed.\n"));
webView_tab_label_change(browser, _("title|Crashed"));
break;
case WEBKIT_WEB_PROCESS_EXCEEDED_MEMORY_LIMIT:
- fprintf(stderr, _("the web process exceeded the memory limit.\n"));
+ fprintf(stderr, "%s", _("the web process exceeded the memory limit.\n"));
webView_tab_label_change(browser, _("title|Out of Memory"));
break;
default:
- fprintf(stderr, _("the web process terminated for an unknown reason.\n"));
+ fprintf(stderr, "%s", _("the web process terminated for an unknown reason.\n"));
webView_tab_label_change(browser, _("title|Unknown Crash"));
}