FS-6796 #resolve hack mod_lua to read correct binary string

This commit is contained in:
Seven Du
2014-09-06 19:38:40 +08:00
parent c02b2427e8
commit 59cd3c77d8
2 changed files with 18 additions and 9 deletions
+1 -1
View File
@@ -2799,7 +2799,7 @@ static int _wrap_Stream_read(lua_State* L) {
result = (char *)(arg1)->read(arg2);
SWIG_arg=0;
lua_pushstring(L,(const char*)result); SWIG_arg++;
lua_pushlstring(L,(const char*)result, (*arg2)); SWIG_arg++;
lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
return SWIG_arg;