diff options
author | Zeev Suraski <zeev@php.net> | 2001-10-29 01:18:10 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-10-29 01:18:10 +0000 |
commit | 66a26907003a3c4529a50ca051f8f64cd1ee55c6 (patch) | |
tree | 19785dbe41116001f9dc33498b25336d8901f880 /main | |
parent | edcd5d08b662ead7e5e0a2cd1c45706a5d345f8a (diff) | |
download | php-git-66a26907003a3c4529a50ca051f8f64cd1ee55c6.tar.gz |
Fix pointer mess
Diffstat (limited to 'main')
-rw-r--r-- | main/php_open_temporary_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index ffc291570a..7499f08e65 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -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 = "/"; |