diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2014-01-05 10:44:53 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2014-01-05 10:44:53 +0100 |
commit | d48896cfa42e38e8acf55437768e8b521ec02614 (patch) | |
tree | 06d2b4ec7938f058d663cb21d2c84715f97e7727 /src/gui/curses | |
parent | a571d599d39e7b05d90c53aaa23cee7c68197e38 (diff) | |
download | weechat-d48896cfa42e38e8acf55437768e8b521ec02614.zip |
core: replace calls to sprintf() with snprintf()
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c index 0e8d90e32..431cee936 100644 --- a/src/gui/curses/gui-curses-key.c +++ b/src/gui/curses/gui-curses-key.c @@ -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); } } |