summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-01-05 10:44:53 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-01-05 10:44:53 +0100
commitd48896cfa42e38e8acf55437768e8b521ec02614 (patch)
tree06d2b4ec7938f058d663cb21d2c84715f97e7727 /src/gui/curses
parenta571d599d39e7b05d90c53aaa23cee7c68197e38 (diff)
downloadweechat-d48896cfa42e38e8acf55437768e8b521ec02614.zip
core: replace calls to sprintf() with snprintf()
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-curses-key.c4
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);
}
}