Mercurial > hg > xemacs-beta
diff src/doprnt.c @ 367:a4f53d9b3154 r21-1-13
Import from CVS: tag r21-1-13
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:01:07 +0200 |
parents | 4711e16a8e49 |
children | cc15677e0335 |
line wrap: on
line diff
--- a/src/doprnt.c Mon Aug 13 11:00:13 2007 +0200 +++ b/src/doprnt.c Mon Aug 13 11:01:07 2007 +0200 @@ -652,13 +652,14 @@ strcat (constructed_spec, " "); if (spec->number_flag) strcat (constructed_spec, "#"); + tem = strlen (constructed_spec); if (spec->precision >= 0) { strcat (constructed_spec, "."); long_to_string (constructed_spec + strlen (constructed_spec), spec->precision); } - sprintf (constructed_spec + (tem = strlen (constructed_spec)), "%c", ch); + sprintf (constructed_spec + strlen (constructed_spec), "%c", ch); /* sprintf the mofo */ /* we have to use separate calls to sprintf(), rather than