diff options
author | Nicholas Clark <nick@ccl4.org> | 2001-02-03 23:53:16 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-02-04 17:43:55 +0000 |
commit | bccbfa77316f269e35ea29247d7506d2c3ba7e11 (patch) | |
tree | 91b6105aa8462b552bfefdb03968ebb453c1716b /perlio.c | |
parent | 8feeef0e0d76d86276cdc4df830eb164693ca482 (diff) | |
download | perl-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |