From: Sterling Hughes Date: Mon, 2 Oct 2000 04:55:26 +0000 (+0000) Subject: Tiny change in copying of buffer. X-Git-Tag: php-4.0.3RC2~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82070f1cdf7310f60f005e3b547f40dc70f6ac7e;p=php Tiny change in copying of buffer. --- diff --git a/ext/curl/curl.c b/ext/curl/curl.c index f50fd7615c..ccf671d766 100644 --- a/ext/curl/curl.c +++ b/ext/curl/curl.c @@ -552,7 +552,7 @@ PHP_FUNCTION(curl_exec) ret_data = emalloc(stat_sb.st_size+1); while ((b = fread(buf, 1, sizeof(buf), fp)) > 0) { - memcpy(&(ret_data[pos]), buf, b); + memcpy(ret_data + pos, buf, b); pos += b; } ret_data[stat_sb.st_size - 1] = '\0';