]> granicus.if.org Git - php/commitdiff
Fix windows build
authorElizabeth Marie Smith <auroraeosrose@php.net>
Thu, 31 Jan 2008 02:35:44 +0000 (02:35 +0000)
committerElizabeth Marie Smith <auroraeosrose@php.net>
Thu, 31 Jan 2008 02:35:44 +0000 (02:35 +0000)
ext/spl/spl_directory.c

index 477416fd16476e9edb40f77bb07a4f2880a8183f..e0bd894f5849c44645aff0e43613db292298c834 100755 (executable)
@@ -194,7 +194,7 @@ static void spl_filesystem_dir_open(spl_filesystem_object* intern, char *path TS
 
        if (intern->_path_len && (path[intern->_path_len-1] == '/'
 #if defined(PHP_WIN32) || defined(NETWARE)
-               || path[intern->path_len-1] == '\\'
+               || path[intern->_path_len-1] == '\\'
 #endif
        )) {
                intern->_path = estrndup(path, --intern->_path_len);