--------------------- PatchSet 10235 Date: 2007/12/13 14:17:52 Author: adri Branch: s27_adri Tag: (none) Log: strBuf() -> strBuf2() in errorpage cod.e Members: src/errorpage.c:1.37.6.1->1.37.6.1.4.1 Index: squid/src/errorpage.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/errorpage.c,v retrieving revision 1.37.6.1 retrieving revision 1.37.6.1.4.1 diff -u -r1.37.6.1 -r1.37.6.1.4.1 --- squid/src/errorpage.c 27 Nov 2007 08:12:27 -0000 1.37.6.1 +++ squid/src/errorpage.c 13 Dec 2007 14:17:52 -0000 1.37.6.1.4.1 @@ -1,6 +1,6 @@ /* - * $Id: errorpage.c,v 1.37.6.1 2007/11/27 08:12:27 adri Exp $ + * $Id: errorpage.c,v 1.37.6.1.4.1 2007/12/13 14:17:52 adri Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -546,9 +546,10 @@ case 'R': if (NULL != r) { Packer p; - memBufPrintf(&mb, "%s %s HTTP/%d.%d\n", + memBufPrintf(&mb, "%s %.*s HTTP/%d.%d\n", RequestMethods[r->method].str, - strLen(r->urlpath) ? strBuf(r->urlpath) : "/", + strLen2(r->urlpath) ? strLen2(r->urlpath) : 1, + strLen2(r->urlpath) ? strBuf2(r->urlpath) : "/", r->http_ver.major, r->http_ver.minor); packerToMemInit(&p, &mb); httpHeaderPackInto(&r->header, &p);