Changeset 453 for trunk/zoo-project/zoo-kernel/zoo_loader.c
- Timestamp:
- Feb 12, 2014, 3:25:15 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_loader.c
r403 r453 86 86 char *strQuery=NULL; 87 87 if(cgiQueryString!=NULL) 88 strQuery= strdup(cgiQueryString);88 strQuery=zStrdup(cgiQueryString); 89 89 map* tmpMap=NULL; 90 90 … … 104 104 else{ 105 105 res=(char*)realloc(res,(cgiContentLength+1)*sizeof(char)); 106 char *tmp= strdup(res);106 char *tmp=zStrdup(res); 107 107 sprintf(res,"%s%s",tmp,buffer); 108 108 free(tmp); … … 136 136 sprintf(buffer,"%s",tmpValueFinal); 137 137 }else{ 138 char *tmp= strdup(buffer);138 char *tmp=zStrdup(buffer); 139 139 sprintf(buffer,"%s&%s",tmp,tmpValueFinal); 140 140 free(tmp); … … 240 240 #endif 241 241 if(req!=NULL && req->nodeNr==1){ 242 t1->value= strdup(requests[j]);242 t1->value=zStrdup(requests[j]); 243 243 j=2; 244 244 } … … 271 271 xmlChar* content=xmlNodeListGetString(doc, id->nodeTab[k]->xmlChildrenNode,1); 272 272 if(strlen(identifiers)>0){ 273 char *tmp= strdup(identifiers);273 char *tmp=zStrdup(identifiers); 274 274 snprintf(identifiers,strlen(tmp)+xmlStrlen(content)+2,"%s,%s",tmp,content); 275 275 free(tmp); … … 303 303 while(token1!=NULL){ 304 304 if(name==NULL) 305 name= strdup(token1);305 name=zStrdup(token1); 306 306 else 307 value= strdup(token1);307 value=zStrdup(token1); 308 308 token1=strtok_r(NULL,"=",&saveptr1); 309 309 }
Note: See TracChangeset
for help on using the changeset viewer.