summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2001-02-03 23:53:16 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-02-04 17:43:55 +0000
commitbccbfa77316f269e35ea29247d7506d2c3ba7e11 (patch)
tree91b6105aa8462b552bfefdb03968ebb453c1716b /perlio.c
parent8feeef0e0d76d86276cdc4df830eb164693ca482 (diff)
downloadperl-bccbfa77316f269e35ea29247d7506d2c3ba7e11.tar.gz
[ID 20010203.006] perlio.c is mis-reporting argument
length byfailing to spot lack of closing ) Message-Id: <E14PCUW-0001Qo-00@Bagpuss.unfortu.net> p4raw-id: //depot/perl@8688
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/perlio.c b/perlio.c
index 1c8f65d179..12374978cb 100644
--- a/perlio.c
+++ b/perlio.c
@@ -651,6 +651,10 @@ PerlIO_apply_layers(pTHX_ PerlIO *f, const char *mode, const char *names)
PerlIO_funcs *tab = INT2PTR(PerlIO_funcs *, SvIV(SvRV(layer)));
if (tab)
{
+ if (as && (ae == Nullch)) {
+ ae = e;
+ Perl_warn(aTHX_ "perlio: argument list not closed for layer \"%.*s\"",(int)(e - s),s);
+ }
len = (as) ? (ae-(as++)-1) : 0;
if (!PerlIO_push(f,tab,mode,as,len))
return -1;