Commit d959c20f authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

make use of sizeof() not explicit magic numbers

svn path=/icecast/trunk/icecast/; revision=19286
parent ab0ac755
......@@ -269,7 +269,7 @@ void stats_event_args(const char *source, char *name, char *format, ...)
if (name == NULL)
va_start(val, format);
ret = vsnprintf(buf, 1024, format, val);
ret = vsnprintf(buf, sizeof(buf), format, val);
if (ret < 0 || (unsigned int)ret >= sizeof (buf))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment