summaryrefslogtreecommitdiff
path: root/gl/vasnprintf.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-07-14 13:52:58 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-07-14 13:53:22 +0200
commit5efa7d64818114bbef4896d3824425917b45e909 (patch)
tree166bb14196a233382b80570c746ae20cf3723fe0 /gl/vasnprintf.c
parent142eddc0b8eb696fcadedd9d9c6f387fafa560f8 (diff)
downloadgnutls-5efa7d64818114bbef4896d3824425917b45e909.tar.gz
updated gnulib
Diffstat (limited to 'gl/vasnprintf.c')
-rw-r--r--gl/vasnprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gl/vasnprintf.c b/gl/vasnprintf.c
index 8fdab32ea5..5267b1bb5e 100644
--- a/gl/vasnprintf.c
+++ b/gl/vasnprintf.c
@@ -5153,7 +5153,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
size_t tmp_length =
MAX_ROOM_NEEDED (&a, dp->arg_index,
dp->conversion, type, flags,
- width, has_precision,
+ has_width ? width : 0,
+ has_precision,
precision, pad_ourselves);
if (maxlen < tmp_length)