Convert sprintf calls to snprintf. From pvaldes.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@451 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-11-11 21:28:26 +00:00
parent bfc147418a
commit 2677dc4c60

View File

@@ -79,7 +79,7 @@ char *numeric_banner(void)
static char thing[4];
if (!get_int_var(SHOW_NUMERICS_VAR))
return (thing_ansi?thing_ansi:empty_string);
sprintf(thing, "%3.3u", -current_numeric);
snprintf(thing, sizeof thing, "%3.3u", -current_numeric);
return (thing);
}