]> granicus.if.org Git - php/commitdiff
Tiny change in copying of buffer.
authorSterling Hughes <sterling@php.net>
Mon, 2 Oct 2000 04:55:26 +0000 (04:55 +0000)
committerSterling Hughes <sterling@php.net>
Mon, 2 Oct 2000 04:55:26 +0000 (04:55 +0000)
ext/curl/curl.c

index f50fd7615cb3a95d9050096d68ad1e62285fcbb5..ccf671d7669f2c605eae5d7038c2afbdc45b8780 100644 (file)
@@ -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';