Use asprintf?