Do not use strdup, do use xstrdup instead

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>