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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user