[xiph-commits] r18362 - icecast/trunk/log
ph3-der-loewe at svn.xiph.org
ph3-der-loewe at svn.xiph.org
Thu Jun 7 11:13:28 PDT 2012
Author: ph3-der-loewe
Date: 2012-06-07 11:13:28 -0700 (Thu, 07 Jun 2012)
New Revision: 18362
Modified:
icecast/trunk/log/log.c
Log:
honor field width in %s and %H
Modified: icecast/trunk/log/log.c
===================================================================
--- icecast/trunk/log/log.c 2012-06-07 18:09:48 UTC (rev 18361)
+++ icecast/trunk/log/log.c 2012-06-07 18:13:28 UTC (rev 18362)
@@ -516,7 +516,7 @@
// 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 @@
}
else
{
- for (; *arg && block_len && size; arg++, size--)
+ for (; *arg && block_len && size; arg++, size--, block_len--)
*(str++) = *arg;
}
in_block = 0;
More information about the commits
mailing list