aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/printf_fp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-29 19:33:05 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-29 19:33:05 +0000
commita5707dad25fcc5093f9cc220226b142fae471718 (patch)
tree79e77e2376db710bf935386e584f6107e207cbe0 /stdio-common/printf_fp.c
parent5ab0176021b51b2815ec44cc42ec8b82c6d6d0f2 (diff)
downloadglibc-a5707dad25fcc5093f9cc220226b142fae471718.tar
glibc-a5707dad25fcc5093f9cc220226b142fae471718.tar.gz
glibc-a5707dad25fcc5093f9cc220226b142fae471718.tar.bz2
glibc-a5707dad25fcc5093f9cc220226b142fae471718.zip
Update.
2000-06-29 Ulrich Drepper <drepper@redhat.com> * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which we later need to calling free(). Patch by Matt Wilson <msw@redhat.com>. 2000-06-27 David Mosberger-Tang <davidm@hpl.hp.com> * 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 <jes@linuxcare.com> * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get prototype for abs(). * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
Diffstat (limited to 'stdio-common/printf_fp.c')
-rw-r--r--stdio-common/printf_fp.c4
1 files changed, 3 insertions, 1 deletions
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)