diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vasnprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index c4c166467..a21134016 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -295,7 +295,7 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar do { size_t w_tmp = width * 10 + (*digitp++ - '0'); - if (SIZE_MAX / 10 <= width || w_tmp < width) + if (SIZE_MAX / 10 < width || w_tmp < width) goto out_of_memory; width = w_tmp; } |