Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marvin Scholz
Icecast-Server
Commits
d959c20f
Commit
d959c20f
authored
Nov 08, 2014
by
Philipp Schafft
🦁
Browse files
make use of sizeof() not explicit magic numbers
svn path=/icecast/trunk/icecast/; revision=19286
parent
ab0ac755
Changes
1
Show whitespace changes
Inline
Side-by-side
src/stats.c
View file @
d959c20f
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment