printf/sprintffuns.c fix

Marco Trudel marco at
Thu Oct 13 11:49:54 CEST 2011

Dear all

Looks to me like there has been a copy paste error for the arguments in 

static int gmp_sprintf_reps (char **bufp, int c, int reps)
static int gmp_sprintf_final (char **bufp, int c, int reps)

The final function doesn't need "c" and "reps". The only call to it 
seems to be in "__gmp_doprnt" (doprnt.c):
     if ((*funs->final) (data) == -1)
       goto error;

Hope that's correct and helps
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sprintffuns-patch.txt
URL: <>

More information about the gmp-bugs mailing list