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:
parent
ab0ac755be
commit
d959c20f11
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user