Commit 9a3b2e73 authored by Frederic Crozat's avatar Frederic Crozat Committed by Frédéric Crozat

Fix format-security warning. Bug #572047.

2009-02-17  Frederic Crozat  <fcrozat@mandriva.com>

        * gui/simple-greeter/gdm-layouts.c:
        * gui/simple-greeter/test-remote-login-window.c:
        Fix format-security warning. Bug #572047.


svn path=/trunk/; revision=6710
parent 409d6cd7
2009-02-17 Frederic Crozat <fcrozat@mandriva.com>
* gui/simple-greeter/gdm-layouts.c:
* gui/simple-greeter/test-remote-login-window.c:
Fix format-security warning. Bug #572047.
2009-02-16 Thomas H.P. Andersen <phomes@gmail.com>
* gui/user-switch-applet/applet.c: (applet_change_background_cb):
......
......@@ -120,7 +120,7 @@ gdm_get_layout_from_name (const char *name)
item = xkl_config_item_new ();
g_snprintf (item->name, XKL_MAX_CI_NAME_LENGTH, id1);
g_snprintf (item->name, XKL_MAX_CI_NAME_LENGTH, "%s", id1);
if (xkl_config_registry_find_layout (config_registry, item)) {
layout = xci_desc_to_utf8 (item);
} else {
......@@ -128,7 +128,7 @@ gdm_get_layout_from_name (const char *name)
}
if (id2 != NULL) {
g_snprintf (item->name, XKL_MAX_CI_NAME_LENGTH, id2);
g_snprintf (item->name, XKL_MAX_CI_NAME_LENGTH, "%s", id2);
if (xkl_config_registry_find_variant (config_registry, id1, item))
variant = xci_desc_to_utf8 (item);
else
......
......@@ -58,7 +58,7 @@ main (int argc, char *argv[])
error = NULL;
re = g_regex_new ("hostname: (?P<hostname>[a-zA-Z0-9.-]+)", 0, 0, &error);
if (re == NULL) {
g_warning (error->message);
g_warning ("%s", error->message);
goto out;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment