From: Moriyoshi Koizumi Date: Mon, 21 Oct 2002 01:33:31 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.0pre2~252 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=890aee56d1b0a77e02d29fe694cc251e02458425;p=php MFH --- 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; } }