mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
web: fix out-of-bounds access if compiled with -DWITH_API=OFF (thanks Sonja)
This commit is contained in:
parent
002e473937
commit
ed56993302
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ void Web::start()
|
|||
logger->info("Starting sub-system: htdocs={}", htdocs.c_str());
|
||||
|
||||
/* update web root of mount point */
|
||||
mounts[1].origin = htdocs.c_str();
|
||||
mounts[ARRAY_LEN(mounts)-1].origin = htdocs.c_str();
|
||||
|
||||
context = lws_create_context(&ctx_info);
|
||||
if (context == nullptr)
|
||||
|
|
Loading…
Add table
Reference in a new issue