[HERCULES] Fix on start possible buffer overruns.
Checks after using --enable-sanitize.
https://github.com/HerculesWS/Hercules/commit/e785879df0519ee69afcac34a1b49db1462d67fc