diff options
author | jh <jh@FreeBSD.org> | 2009-12-17 17:03:47 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2009-12-17 17:03:47 +0000 |
commit | 060a87e0f55f660dac1fdc467a1e5bb520f953e0 (patch) | |
tree | ad817a52fcb0d3b32db89c4148efc8bcbf4de12d /games | |
parent | 4491896aee42d649ffebd4db8fe3607e1debffc9 (diff) | |
download | FreeBSD-src-060a87e0f55f660dac1fdc467a1e5bb520f953e0.zip FreeBSD-src-060a87e0f55f660dac1fdc467a1e5bb520f953e0.tar.gz |
Sync getline() with comm(1):
- Prevent overflowing of the buffer length variable in getline() by
limiting its maximum value.
- Exit if reallocf(3) fails in getline(). Failure was silently
considered as end-of-file.
Reviewed by: ghelmer
Approved by: trasz (mentor)
Diffstat (limited to 'games')
0 files changed, 0 insertions, 0 deletions