Ignore:
Timestamp:
Aug 5, 2011, 3:02:43 PM (13 years ago)
Author:
djay
Message:

Merge branch-1.2 r268:r296.

Location:
branches/branch-1.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1.2

  • branches/branch-1.2/zoo-kernel/ulinet.c

    r93 r301  
    385385  jsmsg = JS_ValueToString(context,*arg);
    386386  len = JS_GetStringLength(jsmsg);
    387   tmp = JS_GetStringBytes(jsmsg);
     387  tmp = JS_EncodeString(context,jsmsg);
    388388  c = (char*)malloc((len+1)*sizeof(char));
    389389  c[len] = '\0';
     
    435435
    436436JSBool
    437 JSRequest(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
     437JSRequest(JSContext *cx, uintN argc, jsval *argv1)
    438438{
     439  jsval *argv = JS_ARGV(cx,argv1);
    439440  HINTERNET hInternet;
    440441  char *url;
     
    488489  fprintf(stderr,"content downloaded (%d) (%s) \n",dwRead,tmpValue);
    489490#endif
    490   *rval=STRING_TO_JSVAL(JS_NewString(cx,tmpValue,strlen(tmpValue)));
     491  JS_SET_RVAL(cx, argv1,STRING_TO_JSVAL(JS_NewStringCopyN(cx,tmpValue,strlen(tmpValue))));
    491492  free(url);
    492493  if(argc>=2)
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