[PATCH] nul-terminate readlink result