From: Owen Shepherd Date: Sat, 25 Aug 2012 16:54:38 +0000 (+0100) Subject: PDCLIB-6: Didn't increment the specification pointer after the '*' in a precision... X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=commitdiff_plain;h=8a6bd772ce0886b05136b195a87ba4a1e21a58d8 PDCLIB-6: Didn't increment the specification pointer after the '*' in a precision specifier. Our printf now passes the tyndur test suite. --- 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 {