mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
bugfix: Issue #531
This commit is contained in:
@@ -494,7 +494,7 @@ static int
|
||||
lfromhex(lua_State *L) {
|
||||
size_t sz = 0;
|
||||
const char * text = luaL_checklstring(L, 1, &sz);
|
||||
if (sz & 2) {
|
||||
if (sz & 1) {
|
||||
return luaL_error(L, "Invalid hex text size %d", (int)sz);
|
||||
}
|
||||
char tmp[SMALL_CHUNK];
|
||||
|
||||
Reference in New Issue
Block a user