`shorten_fname1`: Use `xmalloc`
`shorten_fname1`: Style + remove ifdef