pprintf width problem

0 views
Skip to first unread message

Jeff Crow

unread,
Oct 19, 2009, 12:25:47 AM10/19/09
to illum...@googlegroups.com
pprintf does not behave properly when printing a 0. Here's a patch to
fix it.

Jeff

--- SFB.orig/src/components/library/SFBPrint.cpp 2009-10-18
08:58:32.000000000 -0700
+++ SFB/src/components/library/SFBPrint.cpp 2009-10-18
21:20:23.000000000 -0700
@@ -336,6 +336,8 @@
int i = 0;

if (n == 0) {
+ while (width-- > 1)
+ facePutcImpl(face,zerofill?'0':' ');
facePutcImpl(face,'0');
return;
}

Dave Ackley

unread,
Oct 19, 2009, 6:47:39 AM10/19/09
to illum...@googlegroups.com
Jeff,

Thanks for the report and the fix.

- Dave

Reply all
Reply to author
Forward
0 new messages