Permalink
Browse files

New fix for corrupted param passed to mysac_setup

  • Loading branch information...
1 parent 151e3b5 commit db268fd470a06b5966a91d213cc0c93fd9f7a4d2 @lcharette lcharette committed Feb 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/libape-spidermonkey.c
@@ -2837,7 +2837,7 @@ APE_JS_NATIVE(ape_sm_mysql_constructor)
cdb = JS_EncodeString(cx, db);
my = mysac_new(1024*1024);
- mysac_setup(my, chost, clogin, cpass, cdb, 0);
+ mysac_setup(my, xstrdup(chost), xstrdup(clogin), xstrdup(cpass), xstrdup(cdb), 0);
mysac_connect(my);
myhandle->my = my;

0 comments on commit db268fd

Please sign in to comment.