Prevent use-after-free in parser
Replace strcat with strncat

Signed-off-by: Gregor Best <gbe@unobtanium.de>