From d48896cfa42e38e8acf55437768e8b521ec02614 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 5 Jan 2014 10:44:53 +0100 Subject: core: replace calls to sprintf() with snprintf() --- src/gui/curses/gui-curses-key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/curses') 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); } } -- cgit v1.2.3