Changeset 510 for trunk/zoo-project
- Timestamp:
- Oct 16, 2014, 10:02:46 AM (10 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r509 r510 3225 3225 fcontent[hInternet->ihandle[index].nDataLen]=0; 3226 3226 fsize=hInternet->ihandle[index].nDataLen; 3227 mimeType=strdup((char*)hInternet->ihandle[index].mimeType); 3227 if(hInternet->ihandle[index].mimeType==NULL) 3228 mimeType=strdup("none"); 3229 else 3230 mimeType=strdup((char*)hInternet->ihandle[index].mimeType); 3228 3231 3229 3232 map* tmpMap=getMapOrFill(&content->content,"value",""); -
trunk/zoo-project/zoo-kernel/zoo_loader.c
r490 r510 97 97 while((r=fread(buffer,sizeof(char),1,cgiIn))){ 98 98 buffer[1]=0; 99 cgiContentLength+=r;100 99 if(res==NULL){ 101 100 res=(char*)malloc(2*sizeof(char)); … … 103 102 } 104 103 else{ 105 char *tmp=zStrdup(res); 106 res=(char*)realloc(res,(strlen(tmp)+2)*sizeof(char)); 107 sprintf(res,"%s%s",tmp,buffer); 108 free(tmp); 104 res=(char*)realloc(res,(cgiContentLength+2)*sizeof(char)); 105 memcpy(res + cgiContentLength, buffer, sizeof(char)); 106 res[cgiContentLength+1]=0; 109 107 } 108 cgiContentLength+=r; 110 109 } 111 110 delete[] buffer; -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r507 r510 1981 1981 tmps=tmpsptr->nodesetval; 1982 1982 if(tmps->nodeNr==0){ 1983 xmlXPathFreeObject(tmpsptr); 1983 1984 tmpsptr=extractFromDoc(doc,"/*/*/*[local-name()='RawDataOutput']"); 1984 1985 tmps=tmpsptr->nodesetval; … … 2031 2032 free(tmpmaps->name); 2032 2033 tmpmaps->name=zStrdup((char*)val); 2034 xmlFree(val); 2033 2035 } 2034 2036 cur2=cur2->next;
Note: See TracChangeset
for help on using the changeset viewer.