Compilation warnign fixes and various boundary checks

This commit is contained in:
Luca Deri 2023-06-07 22:52:00 +02:00
parent 63e97ef2ae
commit f95b4cdd85
9 changed files with 44 additions and 34 deletions

View file

@ -37,7 +37,7 @@ CustomFlowLuaScript::CustomFlowLuaScript()
/* ***************************************************** */
LuaEngine *CustomFlowLuaScript::initVM(const char *script_path) {
char where[256];
char where[512];
struct stat s;
snprintf(where, sizeof(where), "%s/%s", ntop->get_install_dir(), script_path);