diff options
author | Matt Widmann <mw@mattwidmann.net> | 2017-11-25 13:27:59 -0800 |
---|---|---|
committer | Matt Widmann <mw@mattwidmann.net> | 2017-11-25 14:21:02 -0800 |
commit | bab2f8200aea09ad32bbcb2e83404bbd4076a227 (patch) | |
tree | d1890a3f0b8cadabb3f57d222e0081848a072570 /runtime/syntax/arduino.vim | |
parent | 0f9c90e0edd27d2db04d48e7bd98bb46d2c4a918 (diff) | |
download | rneovim-bab2f8200aea09ad32bbcb2e83404bbd4076a227.tar.gz rneovim-bab2f8200aea09ad32bbcb2e83404bbd4076a227.tar.bz2 rneovim-bab2f8200aea09ad32bbcb2e83404bbd4076a227.zip |
io: fix handling EOF in vim_fgets
If an EOF is returned from `fgets`, `vim_fgets` might spin forever, as
it tries to consume the current line.
A `NULL` return value from `fgets` should break out of the function
(unless `errno` is `EINTR`), and then `feof` should be used to check for
the EOF condition on the stream.
Diffstat (limited to 'runtime/syntax/arduino.vim')
0 files changed, 0 insertions, 0 deletions