Changeset 633
- Timestamp:
- Apr 16, 2015, 4:01:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r631 r633 2660 2660 free(tmpMap1->value); 2661 2661 tmpMap1->value=(char*) malloc((count+1)*sizeof(char)); 2662 fread(tmpMap1->value, 1,count*sizeof(char),file);2662 fread(tmpMap1->value,count,sizeof(char),file); 2663 2663 fclose(file); 2664 2664 char rsize[100]; 2665 sprintf(rsize,"%ld",count *sizeof(char));2666 addToMap( tmpMap1,"size",rsize);2665 sprintf(rsize,"%ld",count); 2666 addToMap(content,"size",rsize); 2667 2667 } 2668 2668 … … 2764 2764 map* testMap=getMap(tmpI->content,"useMapserver"); 2765 2765 #endif 2766 map *gfile=getMap(tmpI->content,"generated_file"); 2767 char *file_name; 2768 if(gfile!=NULL){ 2769 gfile=getMap(tmpI->content,"expected_generated_file"); 2770 if(gfile==NULL){ 2771 gfile=getMap(tmpI->content,"generated_file"); 2772 } 2773 readGeneratedFile(m,tmpI->content,gfile->value); 2774 file_name=(char*)malloc((strlen(gfile->value)+strlen(tmp1->value)+1)*sizeof(char)); 2775 for(int i=0;i<strlen(gfile->value);i++) 2776 file_name[i]=gfile->value[i+strlen(tmp1->value)]; 2777 } 2778 2766 2779 toto=getMap(tmpI->content,"asReference"); 2767 2780 #ifdef USE_MS … … 2784 2797 } 2785 2798 2786 map *gfile=getMap(tmpI->content,"generated_file"); 2787 char *file_name; 2788 if(gfile!=NULL){ 2789 gfile=getMap(tmpI->content,"expected_generated_file"); 2790 if(gfile==NULL){ 2791 gfile=getMap(tmpI->content,"generated_file"); 2792 } 2793 readGeneratedFile(m,tmpI->content,gfile->value); 2794 file_name=(char*)malloc((strlen(gfile->value)+strlen(tmp1->value)+1)*sizeof(char)); 2795 for(int i=0;i<strlen(gfile->value);i++) 2796 file_name[i]=gfile->value[i+strlen(tmp1->value)]; 2797 } 2798 else{ 2799 if(gfile==NULL){ 2799 2800 map *ext=getMap(tmpI->content,"extension"); 2800 2801 char *file_path;
Note: See TracChangeset
for help on using the changeset viewer.