cvs: php4 /ext/curl curl.c
| From: | Sterling Hughes | Date: | Mon, 02 Oct 2000 04:55:26 +0000 |
| Subject: | cvs: php4 /ext/curl curl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1903@lists.php.net to get a copy of this message | ||
sterling Sun Oct 1 21:55:26 2000 EDT
Modified files:
/php4/ext/curl curl.c
Log:
Tiny change in copying of buffer.
Index: php4/ext/curl/curl.c
diff -u php4/ext/curl/curl.c:1.15 php4/ext/curl/curl.c:1.16
--- php4/ext/curl/curl.c:1.15 Fri Sep 29 20:09:54 2000
+++ php4/ext/curl/curl.c Sun Oct 1 21:55:26 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: curl.c,v 1.15 2000/09/30 03:09:54 sterling Exp $ */
+/* $Id: curl.c,v 1.16 2000/10/02 04:55:26 sterling Exp $ */
#include "php.h"
@@ -552,7 +552,7 @@
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';