[fix] Pointer calculation in string before resizing
[fix] Pointer calculation in string before resizing

Signed-off-by: David Oberhollenzer <ef97309e490485c1bad5018f0617d7fa37bc07ac@tele2.at>

AgentD/ctools,AgentD/ctools,AgentD/ctools