mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user