mario-campos / dyndnsd

Dynamic DNS Daemon for OpenBSD
https://mario-campos.github.io/software/dyndnsd
BSD 3-Clause "New" or "Revised" License
20 stars 0 forks source link

core: remove VLAs #32

Closed mario-campos closed 4 years ago

mario-campos commented 4 years ago

Per Linux guidelines, I've removed VLAs because they're a code smell. Instead, I'm using a GCC extension to automatically free the dynamically-allocated strings on function-exit. I'm not sure how portable this is, but if it turns out to break portabiliy, I'll adjust then.