mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-04-18 00:48:43 -04: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)
|
if (name == NULL)
|
||||||
return;
|
return;
|
||||||
va_start(val, format);
|
va_start(val, format);
|
||||||
ret = vsnprintf(buf, 1024, format, val);
|
ret = vsnprintf(buf, sizeof(buf), format, val);
|
||||||
va_end(val);
|
va_end(val);
|
||||||
|
|
||||||
if (ret < 0 || (unsigned int)ret >= sizeof (buf))
|
if (ret < 0 || (unsigned int)ret >= sizeof (buf))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user