mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-23 15:33:43 +00:00
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:
parent
310dff1850
commit
3686ea42a9
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue