From 8a6bd772ce0886b05136b195a87ba4a1e21a58d8 Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Sat, 25 Aug 2012 17:54:38 +0100 Subject: [PATCH] PDCLIB-6: Didn't increment the specification pointer after the '*' in a precision specifier. Our printf now passes the tyndur test suite. --- functions/_PDCLIB/print.c | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/_PDCLIB/print.c b/functions/_PDCLIB/print.c index d3968f5..aa39707 100644 --- a/functions/_PDCLIB/print.c +++ b/functions/_PDCLIB/print.c @@ -312,6 +312,7 @@ const char * _PDCLIB_print( const char * spec, struct _PDCLIB_status_t * status EOF (negative), there is no need for testing for negative here. */ status->prec = va_arg( status->arg, int ); + ++spec; } else { -- 2.40.0