From: Wez Furlong Date: Thu, 13 Feb 2003 17:36:35 +0000 (+0000) Subject: Another IS_SLASH fix. X-Git-Tag: RELEASE_0_5~1039 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cddcaf737fd119d6aee86d3633f12805708e90c8;p=php Another IS_SLASH fix. --- diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index 4cec5ba68a..eff0393eb1 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -122,7 +122,7 @@ static FILE *php_do_open_temporary_file(const char *path, const char *pfx, char return NULL; } - if (path[strlen(path)-1] == '/') { + if (IS_SLASH(path[strlen(path)-1])) { trailing_slash = ""; } else { trailing_slash = "/";