]> granicus.if.org Git - php/commitdiff
Another IS_SLASH fix.
authorWez Furlong <wez@php.net>
Thu, 13 Feb 2003 17:36:35 +0000 (17:36 +0000)
committerWez Furlong <wez@php.net>
Thu, 13 Feb 2003 17:36:35 +0000 (17:36 +0000)
main/php_open_temporary_file.c

index 4cec5ba68adaf3c5dc8ca711c051640d499f62ea..eff0393eb14c39629477bfbb93587d6855b549be 100644 (file)
@@ -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 = "/";