Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
spr0cketeer
Icecast-common
Commits
56d4ef35
Commit
56d4ef35
authored
Jun 07, 2012
by
Philipp Schafft
🦁
Browse files
honor field width in %s and %H
svn path=/icecast/trunk/log/; revision=18362
parent
ae29f1dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
log/log.c
log/log.c
+2
-2
No files found.
log/log.c
View file @
56d4ef35
...
...
@@ -516,7 +516,7 @@ static void __vsnprintf(char *str, size_t size, const char *format, va_list ap)
// is branch optimized.
if
(
*
format
==
'H'
)
{
for
(;
*
arg
&&
block_len
&&
size
;
arg
++
,
size
--
)
for
(;
*
arg
&&
block_len
&&
size
;
arg
++
,
size
--
,
block_len
--
)
{
if
(
*
arg
<=
'"'
||
*
arg
==
'`'
||
*
arg
==
'\\'
)
*
(
str
++
)
=
'.'
;
...
...
@@ -526,7 +526,7 @@ static void __vsnprintf(char *str, size_t size, const char *format, va_list ap)
}
else
{
for
(;
*
arg
&&
block_len
&&
size
;
arg
++
,
size
--
)
for
(;
*
arg
&&
block_len
&&
size
;
arg
++
,
size
--
,
block_len
--
)
*
(
str
++
)
=
*
arg
;
}
in_block
=
0
;
...
...
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