From 16ef7bc78f3671be96fdc9f549e3dd2cb0d482c3 Mon Sep 17 00:00:00 2001 From: mguesdon Date: Wed, 26 Nov 2003 13:35:43 +0000 Subject: [PATCH] o use gsw_strndup instead of strndup git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18207 72102866-910b-0410-8b05-ffd578937521 --- GSWAdaptors/Apache/mod_gsweb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GSWAdaptors/Apache/mod_gsweb.c b/GSWAdaptors/Apache/mod_gsweb.c index bc8f06d..f7b04a8 100644 --- a/GSWAdaptors/Apache/mod_gsweb.c +++ b/GSWAdaptors/Apache/mod_gsweb.c @@ -333,12 +333,12 @@ copyHeaders(request_rec *p_pRequestRec, { if (headers[i].key) { - GSWHTTPRequest_AddHeader(p_pGSWHTTPRequest, - headers[i].key,headers[i].val); #ifdef DEBUG GSWLog(GSW_DEBUG,pServerRec,"key=%s value=%s", headers[i].key,headers[i].val); #endif + GSWHTTPRequest_AddHeader(p_pGSWHTTPRequest, + headers[i].key,headers[i].val); }; }; @@ -656,8 +656,8 @@ GSWeb_Handler(request_rec *p_pRequestRec) CONST char *pszDocRoot=NULL; char* applicationName=NULL; if (stURLComponents.stAppName.pszStart) - applicationName=strndup(stURLComponents.stAppName.pszStart, - stURLComponents.stAppName.iLength);//We'll need to release it + applicationName=gsw_strndup(stURLComponents.stAppName.pszStart, + stURLComponents.stAppName.iLength);//We'll need to release it // copy headers copyHeaders(p_pRequestRec,pRequest);