diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-13 10:37:30 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-13 10:37:30 +0000 |
commit | a9f76400719eab0b833a22a7abc257540ba871a5 (patch) | |
tree | df345b8da28d9a34e8b7f589220ba7d23e1c4f30 /perlio.c | |
parent | 7e72d50951f9200af403999824e9d3fc17f03570 (diff) | |
download | perl-a9f76400719eab0b833a22a7abc257540ba871a5.tar.gz |
Layer names were recognized by their prefixes
(e.g. open(F, ":u", "file") worked...)
p4raw-id: //depot/perl@21207
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -735,7 +735,7 @@ PerlIO_find_layer(pTHX_ const char *name, STRLEN len, int load) len = strlen(name); for (i = 0; i < PL_known_layers->cur; i++) { PerlIO_funcs *f = PL_known_layers->array[i].funcs; - if (memEQ(f->name, name, len)) { + if (memEQ(f->name, name, len) && f->name[len] == 0) { PerlIO_debug("%.*s => %p\n", (int) len, name, (void*)f); return f; } |