remove superfluous buffer macros
[m6w6/ext-http] / php_http_cookie.c
index 5b8878306f76fd51c3a9fde1f9f6fea953ca54a7..b767bbbb7e83d974b716ff19ed435068536c9150 100644 (file)
@@ -339,8 +339,8 @@ PHP_HTTP_API void php_http_cookie_list_to_string(php_http_cookie_list_t *list, c
        }
        
        php_http_buffer_fix(&buf);
-       *str = PHP_HTTP_BUFFER_VAL(&buf);
-       *len = PHP_HTTP_BUFFER_LEN(&buf);
+       *str = buf.data;
+       *len = buf.used;
 }
 
 #define PHP_HTTP_BEGIN_ARGS(method, req_args)  PHP_HTTP_BEGIN_ARGS_EX(HttpCookie, method, 0, req_args)