X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_buffer.c;h=7736259a78622a41827124f22d5792a4dd7d272c;hb=20a7c37b273e313e53a37f4406eb49898dd50b6d;hp=84e5bbdc39d6f592aa1fd29969a7cd7fdb955738;hpb=b7d38027432247956b62e12f2c56ac3fffb77318;p=m6w6%2Fext-http diff --git a/php_http_buffer.c b/php_http_buffer.c index 84e5bbd..7736259 100644 --- a/php_http_buffer.c +++ b/php_http_buffer.c @@ -1,5 +1,14 @@ - -/* $Id: php_http_buffer_t.c 211942 2006-04-24 17:17:09Z mike $ */ +/* + +--------------------------------------------------------------------+ + | PECL :: http | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2004-2011, Michael Wallner | + +--------------------------------------------------------------------+ +*/ #include "php.h" #include "php_http_buffer.h" @@ -7,7 +16,7 @@ PHP_HTTP_BUFFER_API php_http_buffer_t *php_http_buffer_init_ex(php_http_buffer_t *buf, size_t chunk_size, int flags) { if (!buf) { - buf = pemalloc(sizeof(php_http_buffer_t), flags & PHP_HTTP_BUFFER_INIT_PERSISTENT); + buf = pemalloc(sizeof(*buf), flags & PHP_HTTP_BUFFER_INIT_PERSISTENT); } if (buf) {