mirror of
https://github.com/albertodemichelis/squirrel.git
synced 2026-01-12 22:48:40 +01:00
small fix in sq_getstringandsize
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user