Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
d959c20f
Commit
d959c20f
authored
Nov 08, 2014
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make use of sizeof() not explicit magic numbers
svn path=/icecast/trunk/icecast/; revision=19286
parent
ab0ac755
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/stats.c
src/stats.c
+1
-1
No files found.
src/stats.c
View file @
d959c20f
...
@@ -269,7 +269,7 @@ void stats_event_args(const char *source, char *name, char *format, ...)
...
@@ -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
))
...
...
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