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
This commit is contained in:
mguesdon 2003-11-26 13:35:43 +00:00
parent d4adce8ca7
commit 16ef7bc78f

View file

@ -333,12 +333,12 @@ copyHeaders(request_rec *p_pRequestRec,
{ {
if (headers[i].key) if (headers[i].key)
{ {
GSWHTTPRequest_AddHeader(p_pGSWHTTPRequest,
headers[i].key,headers[i].val);
#ifdef DEBUG #ifdef DEBUG
GSWLog(GSW_DEBUG,pServerRec,"key=%s value=%s", GSWLog(GSW_DEBUG,pServerRec,"key=%s value=%s",
headers[i].key,headers[i].val); headers[i].key,headers[i].val);
#endif #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; CONST char *pszDocRoot=NULL;
char* applicationName=NULL; char* applicationName=NULL;
if (stURLComponents.stAppName.pszStart) if (stURLComponents.stAppName.pszStart)
applicationName=strndup(stURLComponents.stAppName.pszStart, applicationName=gsw_strndup(stURLComponents.stAppName.pszStart,
stURLComponents.stAppName.iLength);//We'll need to release it stURLComponents.stAppName.iLength);//We'll need to release it
// copy headers // copy headers
copyHeaders(p_pRequestRec,pRequest); copyHeaders(p_pRequestRec,pRequest);