Fix snprintf buffer size.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@68 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2009-09-08 13:40:45 +00:00
parent eb13453e50
commit 4decd6202b

View File

@@ -430,7 +430,7 @@ int lastlog_level;
{ {
va_list args; va_list args;
va_start (args, format); va_start (args, format);
vsnprintf(napbuf, 2*NAP_BUFFER_SIZE, format, args); vsnprintf(napbuf, sizeof(napbuf), format, args);
va_end(args); va_end(args);
if (get_dllint_var("napster_show_numeric")) if (get_dllint_var("napster_show_numeric"))
strmopencat(napbuf, sizeof(napbuf)-1, " ", "[", ltoa(nap_numeric), "]", NULL); strmopencat(napbuf, sizeof(napbuf)-1, " ", "[", ltoa(nap_numeric), "]", NULL);