you're modifying `input.name` directly, is that a problem? If yes, a `strdup` should be used.