Code uses gets() rather than fgets()
eyalroz opened this issue · comments
Eyal Rozenberg commented
gets()
is a dangerous function wish should never be used (it assumes the buffer passed is of infinite length) - and yet the original code uses it. Let's switch to fgets()
- and check the return value to be extra safe.