I've updated the original pull request at nagios-plugins/nagios-plugins#54 to make the change more robust against segfaults.
I'm still new to C, so any help and tips are welcome! -- Reply to this email on GitHub: https://github.com/monitoring-plugins/monitoring-plugins/pull/1286#issuecomment-57295216
