Ignore:
Timestamp:
Mar 31, 2014, 10:50:26 PM (10 years ago)
Author:
djay
Message:

Fix some issue in background execution on windows platform (basic array and xlink). Fix issue #89.

File:
1 edited

Legend:

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

    r453 r458  
    287287  }
    288288  if(getMapFromMaps(conf,"lenv","status")!=NULL){
    289     fprintf(stderr,"STATUS RETURNED : %s\n",status);
    290289    if(status!=NULL){
    291290      setMapInMaps(conf,"lenv","status",status);
     
    16411640                            (strncmp(tmp2->value,"application/",12)==0) &&
    16421641                            strncmp(tmp2->value,"application/json",16)!=0&&
     1642                            strncmp(tmp2->value,"application/x-javascript",24)!=0&&
    16431643                            strncmp(tmp2->value,"application/vnd.google-earth.kml",32)!=0)
    16441644             )) {
     
    20042004        map *tmp3=getMapFromMaps(m,"main","serverAddress");
    20052005        char *file_url;
    2006         if(strncasecmp(tmp2->value,"http://",7)==0){
    2007           file_url=(char*)malloc((strlen(tmp2->value)+strlen(file_name))*sizeof(char));
     2006        if(strncasecmp(tmp2->value,"http://",7)==0 ||
     2007           strncasecmp(tmp2->value,"https://",8)==0){
     2008          file_url=(char*)malloc((strlen(tmp2->value)+strlen(file_name)+2)*sizeof(char));
    20082009          sprintf(file_url,"%s/%s",tmp2->value,file_name);
    20092010        }else{
    2010           file_url=(char*)malloc((strlen(tmp3->value)+strlen(tmp2->value)+strlen(file_name))*sizeof(char));
     2011          file_url=(char*)malloc((strlen(tmp3->value)+strlen(tmp2->value)+strlen(file_name)+3)*sizeof(char));
    20112012          sprintf(file_url,"%s/%s/%s",tmp3->value,tmp2->value,file_name);
    20122013        }
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