]> granicus.if.org Git - php/commitdiff
Fix pr #8305.
authorfoobar <sniper@php.net>
Wed, 3 Jan 2001 16:07:55 +0000 (16:07 +0000)
committerfoobar <sniper@php.net>
Wed, 3 Jan 2001 16:07:55 +0000 (16:07 +0000)
ext/curl/curl.c

index f367ba9bd984cbfb195c8f516513e77d759c6605..f04b076e31dc4275a059467e4375de87d22a3ec4 100644 (file)
@@ -649,7 +649,7 @@ PHP_FUNCTION(curl_exec)
                        memcpy(ret_data + pos, buf, b);
                        pos += b;
                }
-               ret_data[stat_sb.st_size - 1] = '\0';
+               ret_data[stat_sb.st_size] = '\0';
                
                if (is_temp_file)
                        fclose(fp);