Use fgets() instead of gets().
The approach I used was to create a "poor man's" gets macro as an example.
Though not the same as gets() it approximates gets() well enough. We might
want to consider this approach in base.
This is for ttps://reviews.freebsd.org/D12298.
PR: 222796
Requested by: emaste