diff options
Diffstat (limited to 'stdio-common/printf_fp.c')
-rw-r--r-- | stdio-common/printf_fp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stdio-common/printf_fp.c b/stdio-common/printf_fp.c index 1de19c2..67161be 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) |