From f441f7f99d249ed9f2f949dfcd3493c619e628ce Mon Sep 17 00:00:00 2001 From: albertodemichelis Date: Mon, 16 May 2016 01:44:13 +0800 Subject: [PATCH] small fix in sq_getstringandsize --- squirrel/sqapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squirrel/sqapi.cpp b/squirrel/sqapi.cpp index a304f6e..c5a70d6 100644 --- a/squirrel/sqapi.cpp +++ b/squirrel/sqapi.cpp @@ -685,7 +685,7 @@ SQRESULT sq_getstringandsize(HSQUIRRELVM v,SQInteger idx,const SQChar **c,SQInte SQObjectPtr *o = NULL; _GETSAFE_OBJ(v, idx, OT_STRING,o); *c = _stringval(*o); - *size = _stringlen(*o); + *size = _string(*o)->_len; return SQ_OK; }