Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

nfqws2: bu48 crash fix

This commit is contained in:
bol-van
2025-12-29 19:25:28 +03:00
parent 8103a02689
commit 78b348a193

View File

@@ -401,7 +401,7 @@ static int luacall_bu48(lua_State *L)
int64_t i = (int64_t)luaL_checklint(L,1);
if (i>0xFFFFFFFFFFFF || i<-(int64_t)0xFFFFFFFFFFFF) luaL_error(L, "out of range");
uint8_t v[4];
uint8_t v[6];
phton48(v,(uint64_t)i);
lua_pushlstring(L,(char*)v,6);
return 1;