From: Ilia Alshanetsky Date: Thu, 20 Feb 2003 00:34:03 +0000 (+0000) Subject: Revert accidental commit. X-Git-Tag: RELEASE_0_5~859 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69094da0e8753f23266657dc6e94273ae8f75947;p=php Revert accidental commit. --- diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index d869d17099..e6da657882 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -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 {