fixing strdup in server.