aboutsummaryrefslogtreecommitdiffstats
path: root/vsnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'vsnprintf.c')
-rw-r--r--vsnprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vsnprintf.c b/vsnprintf.c
index 9778f039c5..8958aaa41f 100644
--- a/vsnprintf.c
+++ b/vsnprintf.c
@@ -1060,6 +1060,7 @@ number: if ((dprec = prec) >= 0)
* explicit precision of zero is no characters.''
* -- ANSI X3J11
*/
+ cp = ebuf;
#ifdef _HAVE_SANE_QUAD_
if (flags & QUADINT) {
if (uqval != 0 || prec != 0)