summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-07-02 11:34:49 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-02 11:34:49 +0000
commit3a7a539e5f0eb5f1cbbfca9c0aa7cbe4f16372b1 (patch)
tree28b17b8c9413ed3f36278cd0f68b9fc41d932b1f /sv.c
parentec488bcf4722172239bf82ed09d2c56fb8487462 (diff)
downloadperl-3a7a539e5f0eb5f1cbbfca9c0aa7cbe4f16372b1.tar.gz
Fix for [perl #22759 insufficient format string checking];
using ewix makes no sense, assuming evix was intended, no old tests fail; add the test case. p4raw-id: //depot/perl@19931
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 b6d09202b0..69fbbaacbe 100644
--- a/sv.c
+++ b/sv.c
@@ -8668,7 +8668,7 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
vecsv = va_arg(*args, SV*);
else
vecsv = (evix ? evix <= svmax : svix < svmax) ?
- svargs[ewix ? ewix-1 : svix++] : &PL_sv_undef;
+ svargs[evix ? evix-1 : svix++] : &PL_sv_undef;
dotstr = SvPVx(vecsv, dotstrlen);
if (DO_UTF8(vecsv))
is_utf8 = TRUE;