DC++ Core: fix buffer overflow on exit
Merge branch '2.2.x' of github.com:eiskaltdcpp/eiskaltdcpp into 2.2.x