Changeset 509 for trunk/zoo-project/zoo-kernel/ulinet.c
- Timestamp:
- Oct 9, 2014, 7:25:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/ulinet.c
r508 r509 59 59 60 60 size_t header_write_data(void *buffer, size_t size, size_t nmemb, void *data){ 61 if(strncmp("Set-Cookie: ", buffer,12)==0){61 if(strncmp("Set-Cookie: ",(char*)buffer,12)==0){ 62 62 int i; 63 63 char env[256]; … … 71 71 ; 72 72 #endif 73 sscanf( buffer,"%s; path=%s; domain=%s",env,path,domain);74 tmp=strcat(env,CCookie );73 sscanf((char*)buffer,"%s; path=%s; domain=%s",env,path,domain); 74 tmp=strcat(env,CCookie[0]); 75 75 #ifdef MSG_LAF_OUT 76 76 printf("\n**Cookie env : [%s] , path : [%s], domain : [%s]**\n",env,path,domain); 77 77 printf("buffer : %d (%s) (%s) (%s)\n",(buffer==NULL),buffer,tmp,CCookie); 78 78 #endif 79 strcpy(CCookie ,tmp);79 strcpy(CCookie[0],tmp); 80 80 } 81 81 return size * nmemb;//write_data_into(buffer,size,nmemb,data,HEADER); … … 160 160 fprintf( stderr, "setProxiesForProtocol (do nothing) ...\n" ); 161 161 #endif 162 return true; 162 163 } 163 164 #endif … … 301 302 curl_easy_cleanup(hInternet->ihandle[i].handle); 302 303 } 304 return 0; 303 305 } 304 306
Note: See TracChangeset
for help on using the changeset viewer.