]> granicus.if.org Git - php/commitdiff
Revert accidental commit.
authorIlia Alshanetsky <iliaa@php.net>
Thu, 20 Feb 2003 00:34:03 +0000 (00:34 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 20 Feb 2003 00:34:03 +0000 (00:34 +0000)
ext/standard/http_fopen_wrapper.c

index d869d17099d55dc62e1c114efa3c5659fc87beb2..e6da65788277436cd45ca61671b02edb8d2a3e14 100644 (file)
@@ -354,7 +354,7 @@ php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, char *path, ch
                                                        s = resource->path;
                                                        *s = '/';
                                                }
-                                               *(s + 1) = '\0'; 
+                                               s[1] = '\0'; 
                                                if (resource->path && *(resource->path) == '/' && *(resource->path + 1) == '\0') {
                                                        snprintf(loc_path, sizeof(loc_path) - 1, "%s%s", resource->path, location);
                                                } else {