summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2016-08-10 19:06:03 -0400
committerSteve Hay <steve.m.hay@googlemail.com>2017-08-09 13:21:22 +0100
commitd15a497c9bb1d2a73a822955cad1abb2fbfb4b1f (patch)
treec1ec60bc25e6c5b585fc0b0eda781002f7966b06 /sv.c
parent94cbfa8253168c403fd531381fa27326a207de64 (diff)
downloadperl-d15a497c9bb1d2a73a822955cad1abb2fbfb4b1f.tar.gz
[rt.perl.org #128888]: printf %a mishandles zero precision
(cherry picked from commit 82229f9f47d9a169b59715582fb5a09b5a4ac0ff)
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 783c0cfbf4..5c54b27e0b 100644
--- a/sv.c
+++ b/sv.c
@@ -12518,7 +12518,7 @@ Perl_sv_vcatpvfn_flags(pTHX_ SV *const sv, const char *const pat, const STRLEN p
v0 = vhex;
}
- if (precis > 0) {
+ if (has_precis) {
U8* ve = (subnormal ? vlnz + 1 : vend);
SSize_t vn = ve - (subnormal ? vfnz : vhex);
if ((SSize_t)(precis + 1) < vn) {