1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 18:53:12 +02:00

core: replace calls to sprintf() with snprintf()

This commit is contained in:
Sebastien Helleu
2014-01-05 10:44:53 +01:00
parent a571d599d3
commit d48896cfa4
3 changed files with 94 additions and 67 deletions
+2 -2
View File
@@ -218,8 +218,8 @@ gui_key_default_bindings (int context)
/* bind meta-j + {01..99} to switch to buffers # > 10 */
for (i = 1; i < 100; i++)
{
sprintf (key_str, "meta-j%02d", i);
sprintf (command, "/buffer %d", i);
snprintf (key_str, sizeof (key_str), "meta-j%02d", i);
snprintf (command, sizeof (command), "/buffer %d", i);
BIND(key_str, command);
}
}