Skip to content

Commit a8891aa

Browse files
author
zik.saleeba
committed
Fix for printf formatting problem when multiple fields with field
widths were used. Issue #172 git-svn-id: http://picoc.googlecode.com/svn/trunk@584 21eae674-98b7-11dd-bd71-f92a316d2d60
1 parent 9ec50b6 commit a8891aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clibrary.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ void GenericPrintf(struct ParseState *Parser, struct Value *ReturnValue, struct
239239
if (*FPos == '%')
240240
{
241241
FPos++;
242+
FieldWidth = 0;
242243
if (*FPos == '-')
243244
{
244245
/* a leading '-' means left justify */

0 commit comments

Comments
 (0)