Use ferror() to check for getline() failure. From Scott Cheloha.
authormillert <millert@openbsd.org>
Wed, 31 May 2017 19:41:30 +0000 (19:41 +0000)
committermillert <millert@openbsd.org>
Wed, 31 May 2017 19:41:30 +0000 (19:41 +0000)
commitb9912a9077e917730dff01338f05c2b10a2c1278
tree709d50bb2a026e19c23f973ed75ff509c5b70f47
parent527d7fdf3c0bf4f2d31d1136ecd5de1aab43c9e6
Use ferror() to check for getline() failure.  From Scott Cheloha.
OK jung@
usr.bin/from/from.c