From 890aee56d1b0a77e02d29fe694cc251e02458425 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Mon, 21 Oct 2002 01:33:31 +0000 Subject: [PATCH] MFH --- main/streams.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/streams.c b/main/streams.c index e7e576f155..cab4e2f001 100755 --- a/main/streams.c +++ b/main/streams.c @@ -1521,9 +1521,9 @@ PHPAPI php_stream *_php_stream_fopen_with_path(char *filename, char *mode, char if (*filename == '.' && (*(filename+1) == '/' || *(filename+1) == '.')) { /* further checks, we could have ....... filenames */ ptr = filename + 1; - if (ptr == '.') { + if (*ptr == '.') { while (*(++ptr) == '.'); - if (ptr != '/') { /* not a relative path after all */ + if (*ptr != '/') { /* not a relative path after all */ goto not_relative_path; } } -- 2.50.1