From a5707dad25fcc5093f9cc220226b142fae471718 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 29 Jun 2000 19:33:05 +0000 Subject: Update. 2000-06-29 Ulrich Drepper * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which we later need to calling free(). Patch by Matt Wilson . 2000-06-27 David Mosberger-Tang * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file. * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file. 2000-06-28 Jes Sorensen * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get prototype for abs(). * sysdeps/ieee754/flt-32/s_exp2f.c: ditto. --- stdio-common/printf_fp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stdio-common/printf_fp.c') diff --git a/stdio-common/printf_fp.c b/stdio-common/printf_fp.c index 1de19c2607..67161be586 100644 --- a/stdio-common/printf_fp.c +++ b/stdio-common/printf_fp.c @@ -1072,6 +1072,7 @@ __printf_fp (FILE *fp, { char *buffer = NULL; char *cp = NULL; + char *tmpptr; if (! wide) { @@ -1112,7 +1113,8 @@ __printf_fp (FILE *fp, *cp++ = (char) *copywc; } - PRINT (buffer, wstartp, wide ? wcp - wstartp : cp - buffer); + tmpptr = buffer; + PRINT (tmpptr, wstartp, wide ? wcp - wstartp : cp - tmpptr); /* Free the memory if necessary. */ if (buffer_malloced) -- cgit v1.2.3