1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-01-03 14:56:34 -05:00

make use of sizeof() not explicit magic numbers

svn path=/icecast/trunk/icecast/; revision=19286
This commit is contained in:
Philipp Schafft 2014-11-08 12:28:17 +00:00
parent ab0ac755be
commit d959c20f11

View File

@ -269,7 +269,7 @@ void stats_event_args(const char *source, char *name, char *format, ...)
if (name == NULL)
return;
va_start(val, format);
ret = vsnprintf(buf, 1024, format, val);
ret = vsnprintf(buf, sizeof(buf), format, val);
va_end(val);
if (ret < 0 || (unsigned int)ret >= sizeof (buf))