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
This commit is contained in:
zik.saleeba 2013-01-14 22:08:54 +00:00
parent 9ec50b6e49
commit a8891aa743

View file

@ -239,6 +239,7 @@ void GenericPrintf(struct ParseState *Parser, struct Value *ReturnValue, struct
if (*FPos == '%')
{
FPos++;
FieldWidth = 0;
if (*FPos == '-')
{
/* a leading '-' means left justify */