Ignore:
Timestamp:
Sep 23, 2014, 4:03:07 PM (10 years ago)
Author:
djay
Message:

Fixes for metapath definition with prefixed names.

File:
1 edited

Legend:

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

    r492 r505  
    147147  void* cxPrivate = request;
    148148  JS_SetContextPrivate(cx,cxPrivate);
    149    
     149
    150150  map* tmpm1=getMap(request,"metapath");
    151151  char ntmp[1024];
     
    155155   * Load the first part of the ZOO-API
    156156   */
    157   char *api0=(char*)malloc(strlen(tmpm1->value)+strlen(ntmp)+17);
    158   sprintf(api0,"%s/%s/ZOO-proj4js.js",ntmp,tmpm1->value);
     157  char *api0=(char*)malloc((strlen(ntmp)+17)*sizeof(char));
     158  sprintf(api0,"%s/ZOO-proj4js.js",ntmp);
    159159#ifdef JS_DEBUG
    160160  fprintf(stderr,"Trying to load %s\n",api0);
     
    164164  fflush(stderr);
    165165
    166   char *api1=(char*)malloc(strlen(tmpm1->value)+strlen(ntmp)+13);
    167   sprintf(api1,"%s/%s/ZOO-api.js",ntmp,tmpm1->value);
     166  char *api1=(char*)malloc((strlen(ntmp)+13)*sizeof(char));
     167  sprintf(api1,"%s/ZOO-api.js",ntmp);
    168168#ifdef JS_DEBUG
    169169  fprintf(stderr,"Trying to load %s\n",api1);
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