--------------------- PatchSet 10218 Date: 2007/12/12 10:18:27 Author: adri Branch: s27_adri Tag: (none) Log: strBuf() -> strLen2() + strBuf2() in the request packer. (101 to go!) Members: src/HttpRequest.c:1.17.10.1->1.17.10.1.4.1 Index: squid/src/HttpRequest.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/HttpRequest.c,v retrieving revision 1.17.10.1 retrieving revision 1.17.10.1.4.1 diff -u -r1.17.10.1 -r1.17.10.1.4.1 --- squid/src/HttpRequest.c 27 Nov 2007 08:12:24 -0000 1.17.10.1 +++ squid/src/HttpRequest.c 12 Dec 2007 10:18:27 -0000 1.17.10.1.4.1 @@ -1,6 +1,6 @@ /* - * $Id: HttpRequest.c,v 1.17.10.1 2007/11/27 08:12:24 adri Exp $ + * $Id: HttpRequest.c,v 1.17.10.1.4.1 2007/12/12 10:18:27 adri Exp $ * * DEBUG: section 73 HTTP Request * AUTHOR: Duane Wessels @@ -113,8 +113,8 @@ { assert(req && p); /* pack request-line */ - packerPrintf(p, "%s %s HTTP/1.0\r\n", - RequestMethods[req->method].str, strBuf(req->urlpath)); + packerPrintf(p, "%s %.*s HTTP/1.0\r\n", + RequestMethods[req->method].str, strLen2(req->urlpath), strBuf2(req->urlpath)); /* headers */ httpHeaderPackInto(&req->header, p); /* trailer */