From: Zeev Suraski Date: Mon, 29 Oct 2001 01:18:10 +0000 (+0000) Subject: Fix pointer mess X-Git-Tag: ChangeLog~496 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66a26907003a3c4529a50ca051f8f64cd1ee55c6;p=php Fix pointer mess --- 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 = "/";