create buffer class && some warnings fixes && update manual && create vscode tasks
This commit is contained in:
@@ -33,7 +33,7 @@ int syscalls_indexARPEntry(lua_State* L)
|
||||
else if (strcmp(index, "MAC") == 0)
|
||||
{
|
||||
char str[7];
|
||||
memset(str, entry->MAC, 6);
|
||||
memcpy(str, &entry->MAC, 6);
|
||||
str[6] = '\n';
|
||||
lua_pushstring(L, str);
|
||||
}
|
||||
@@ -79,7 +79,7 @@ int syscalls_newindexARPEntry(lua_State* L)
|
||||
}
|
||||
else
|
||||
{
|
||||
_ksys_debug_puts("err\n");
|
||||
luaL_error(L, "wrong index: %s", index);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user