summaryrefslogtreecommitdiff
path: root/main/php_open_temporary_file.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-02-13 17:36:35 +0000
committerWez Furlong <wez@php.net>2003-02-13 17:36:35 +0000
commitcddcaf737fd119d6aee86d3633f12805708e90c8 (patch)
treeff80f7cea345cbab40a3012b6995f4ae80b21c46 /main/php_open_temporary_file.c
parent7fffe4338a9379807b16c12aa551cb1b01889519 (diff)
downloadphp-git-cddcaf737fd119d6aee86d3633f12805708e90c8.tar.gz
Another IS_SLASH fix.
Diffstat (limited to 'main/php_open_temporary_file.c')
-rw-r--r--main/php_open_temporary_file.c2
1 files changed, 1 insertions, 1 deletions
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 = "/";