summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
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);
}
}