avoid bufferoverflow at all

Signed-off-by: Umair Khan <omerjerk@gmail.com>