Ignore:
Timestamp:
Oct 9, 2014, 7:25:52 PM (10 years ago)
Author:
djay
Message:

Apply updates of the PHP support and fixes in ulinet provided by Knut Landmark. Fix building issue on GNU/Linux by defining semun.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/ulinet.c

    r508 r509  
    5959
    6060size_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){
    6262    int i;
    6363    char env[256];
     
    7171        ;
    7272#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]);
    7575#ifdef MSG_LAF_OUT
    7676    printf("\n**Cookie env : [%s] , path : [%s], domain : [%s]**\n",env,path,domain);
    7777    printf("buffer : %d (%s) (%s) (%s)\n",(buffer==NULL),buffer,tmp,CCookie);
    7878#endif
    79     strcpy(CCookie,tmp);
     79    strcpy(CCookie[0],tmp);
    8080  }
    8181  return size * nmemb;//write_data_into(buffer,size,nmemb,data,HEADER);
     
    160160  fprintf( stderr, "setProxiesForProtocol (do nothing) ...\n" );
    161161#endif
     162  return true;
    162163}
    163164#endif
     
    301302    curl_easy_cleanup(hInternet->ihandle[i].handle);
    302303  }
     304  return 0;
    303305}
    304306
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png