INN commit: trunk/nnrpd (list.c)
INN Commit
rra at isc.org
Thu Aug 5 19:46:46 UTC 2010
Date: Thursday, August 5, 2010 @ 12:46:45
Author: iulius
Revision: 9093
Use a variable for the width within printf.
Following commit 9092.
Thanks to Urs Janssen for the hint.
Modified:
trunk/nnrpd/list.c
--------+
list.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Modified: list.c
===================================================================
--- list.c 2010-08-03 18:40:23 UTC (rev 9092)
+++ list.c 2010-08-05 19:46:45 UTC (rev 9093)
@@ -160,8 +160,8 @@
if (count == 0)
lo = hi + 1;
Reply("%d %s\r\n", NNTP_OK_LIST, INFOactive.Format);
- /* 10 is ARTNUMPRINTSIZE. */
- Printf("%s %010u %010u %c\r\n", group, hi, lo, flag);
+ Printf("%s %0*u %0*u %c\r\n", group, ARTNUMPRINTSIZE, hi,
+ ARTNUMPRINTSIZE, lo, flag);
Printf(".\r\n");
return true;
}
More information about the inn-committers
mailing list