summaryrefslogtreecommitdiff
path: root/lib/vasnprintf.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2014-02-07 15:25:49 +0100
committerAndy Wingo <wingo@pobox.com>2014-02-07 15:25:49 +0100
commit479fc9a5caca8592da5cc84570fbf2335c632d6c (patch)
tree710ade387d04b55871f4282b55ca5df978c06bea /lib/vasnprintf.c
parentb00c9b221401082449fd733a78bb1b4f88e41ebe (diff)
parent5e69ceb7a667377a61cb0c31d7ac20e245b3fafd (diff)
downloadguile-479fc9a5caca8592da5cc84570fbf2335c632d6c.tar.gz
Merge commit '5e69ceb7a667377a61cb0c31d7ac20e245b3fafd'
Diffstat (limited to 'lib/vasnprintf.c')
-rw-r--r--lib/vasnprintf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c
index 2e6bc8023..7282b0504 100644
--- a/lib/vasnprintf.c
+++ b/lib/vasnprintf.c
@@ -1,5 +1,5 @@
/* vsprintf with automatic memory allocation.
- Copyright (C) 1999, 2002-2013 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2002-2014 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
@@ -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)