logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: 6b5f7edc9b3d420837a3035fb24760de54451c4d
parent: 186cee6c2b5d80046c71022d422f9df17bbd21d5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  4 Feb 2020 07:37:51 +0100

badwolf.c: Always set a format in *printf calls

Potential bug found via printf-scan aka pscan

Diffstat:

Mbadwolf.c6+++---
Mpo/fr.po17+++++++----------
Mpo/messages.pot19++++++++-----------
Mpo/pt_BR.po17+++++++----------
4 files changed, 25 insertions(+), 34 deletions(-)

diff --git 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")); } diff --git a/po/fr.po b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 0.3.0+gd88f2e7\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-01-22 16:20+0100\n" +"POT-Creation-Date: 2020-02-04 07:57+0100\n" "PO-Revision-Date: 2019-12-22 00:57+0100\n" "Last-Translator: Haelwenn (lanodan) Monnier <contact@hacktivis.me>\n" "Language-Team: French\n" @@ -17,7 +17,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: badwolf.c:771 +#: badwolf.c:764 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "Version WebKit à la compilation: %d.%d.%d\n" @@ -75,16 +75,16 @@ msgstr "Navigateur WebKitGTK+ minimaliste et orienté vie privée" msgid "New tab" msgstr "Nouvel onglet" -#: badwolf.c:793 +#: badwolf.c:786 msgid "Open new tab" msgstr "Ouvrir un nouvel onglet" -#: badwolf.c:769 +#: badwolf.c:762 #, c-format msgid "Running Badwolf version: %s\n" msgstr "Version de Badwolf: %s\n" -#: badwolf.c:776 +#: badwolf.c:769 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "Version WebKit au lancement: %d.%d.%d\n" @@ -107,17 +107,14 @@ msgid "search in current page" msgstr "recherche dans la page courante" #: badwolf.c:94 -#, c-format msgid "the web process crashed.\n" msgstr "le processus web a cessé de fonctionner.\n" #: badwolf.c:98 -#, c-format msgid "the web process exceeded the memory limit.\n" msgstr "le processus web a dépassé la limitation de mémoire.\n" #: badwolf.c:102 -#, c-format msgid "the web process terminated for an unknown reason.\n" msgstr "le processus web s’est interrompu pour une raison inconnue.\n" @@ -133,12 +130,12 @@ msgstr "Dépassement Mémoire" msgid "title|Unknown Crash" msgstr "Crash inconnu" -#: badwolf.c:783 +#: badwolf.c:776 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "Répertoire webkit-web-extension configuré à %s\n" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:822 +#: badwolf.c:815 msgid "ø" msgstr "" diff --git a/po/messages.pot b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 0.4.0+ge6bdb68\n" +"Project-Id-Version: Badwolf 0.4.0+gac60080\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-01-22 16:20+0100\n" +"POT-Creation-Date: 2020-02-04 07:57+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -17,7 +17,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: badwolf.c:771 +#: badwolf.c:764 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "" @@ -69,16 +69,16 @@ msgstr "" msgid "New tab" msgstr "" -#: badwolf.c:793 +#: badwolf.c:786 msgid "Open new tab" msgstr "" -#: badwolf.c:769 +#: badwolf.c:762 #, c-format msgid "Running Badwolf version: %s\n" msgstr "" -#: badwolf.c:776 +#: badwolf.c:769 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "" @@ -101,17 +101,14 @@ msgid "search in current page" msgstr "" #: badwolf.c:94 -#, c-format msgid "the web process crashed.\n" msgstr "" #: badwolf.c:98 -#, c-format msgid "the web process exceeded the memory limit.\n" msgstr "" #: badwolf.c:102 -#, c-format msgid "the web process terminated for an unknown reason.\n" msgstr "" @@ -127,12 +124,12 @@ msgstr "" msgid "title|Unknown Crash" msgstr "" -#: badwolf.c:783 +#: badwolf.c:776 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:822 +#: badwolf.c:815 msgid "ø" msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 0.4.0+g607300e\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-01-22 16:20+0100\n" +"POT-Creation-Date: 2020-02-04 07:57+0100\n" "PO-Revision-Date: 2020-01-20 22:17-0300\n" "Last-Translator: Pedro Lucas Porcellis <porcellis@eletrotupi.com>\n" "Language-Team: Brazilian Portuguese\n" @@ -16,7 +16,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: badwolf.c:771 +#: badwolf.c:764 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "Versão do WebKit %d.%d.%d\n" @@ -74,16 +74,16 @@ msgstr "Navegador orientado pela privacidade e minimalismo" msgid "New tab" msgstr "Nova aba" -#: badwolf.c:793 +#: badwolf.c:786 msgid "Open new tab" msgstr "Abrir uma Nova aba" -#: badwolf.c:769 +#: badwolf.c:762 #, c-format msgid "Running Badwolf version: %s\n" msgstr "Rodando versão %s do Badwolf\n" -#: badwolf.c:776 +#: badwolf.c:769 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "Versão do WebKit: %d.%d.%d\n" @@ -106,17 +106,14 @@ msgid "search in current page" msgstr "buscar na página atual" #: badwolf.c:94 -#, c-format msgid "the web process crashed.\n" msgstr "o processo web travou.\n" #: badwolf.c:98 -#, c-format msgid "the web process exceeded the memory limit.\n" msgstr "o processo web excedeu o limite de memória.\n" #: badwolf.c:102 -#, c-format msgid "the web process terminated for an unknown reason.\n" msgstr "o processo web terminou por uma razão desconhecida.\n" @@ -132,12 +129,12 @@ msgstr "Sem memória" msgid "title|Unknown Crash" msgstr "Erro desconhecido" -#: badwolf.c:783 +#: badwolf.c:776 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "diretório de extensões configurado para: %s\n" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:822 +#: badwolf.c:815 msgid "ø" msgstr "ø"