]> granicus.if.org Git - php/commitdiff
Fix pointer mess
authorZeev Suraski <zeev@php.net>
Mon, 29 Oct 2001 01:18:10 +0000 (01:18 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 29 Oct 2001 01:18:10 +0000 (01:18 +0000)
main/php_open_temporary_file.c

index ffc291570aac70ddf12687e265e766de89a1bd9a..7499f08e650b3d7b4c586e624c6f523b5045445d 100644 (file)
@@ -104,7 +104,7 @@ static FILE *php_do_open_temporary_file(char *path, const char *pfx, char **open
                return NULL;
        }
 
-       if (*path+strlen(path)-1 == '/') {
+       if (path[strlen(path)-1] == '/') {
                trailing_slash = "";
        } else {
                trailing_slash = "/";