From d959c20f113727c7a663c65570fd33bdf4e47cc2 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Sat, 8 Nov 2014 12:28:17 +0000 Subject: [PATCH] make use of sizeof() not explicit magic numbers svn path=/icecast/trunk/icecast/; revision=19286 --- src/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats.c b/src/stats.c index c302c234..b1c9d90f 100644 --- a/src/stats.c +++ b/src/stats.c @@ -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))