Apparently I shouldn't use strdup in c99? Back to malloc and strcpy it is

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>