summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-09-13 10:37:30 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-09-13 10:37:30 +0000
commita9f76400719eab0b833a22a7abc257540ba871a5 (patch)
treedf345b8da28d9a34e8b7f589220ba7d23e1c4f30 /perlio.c
parent7e72d50951f9200af403999824e9d3fc17f03570 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index 91b7781bd4..a716e706bd 100644
--- a/perlio.c
+++ b/perlio.c
@@ -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;
}