diff options
author | stefanf <stefanf@FreeBSD.org> | 2006-04-29 10:29:10 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2006-04-29 10:29:10 +0000 |
commit | 0217b84e8a5ba9e2a460b9d1a42d6bd063d2e788 (patch) | |
tree | 3ca737d0266af7e1638c25a6315acb0541c6c315 /share/syscons | |
parent | 78ed66ae083c20c8fc784c109730c53a45725865 (diff) | |
download | FreeBSD-src-0217b84e8a5ba9e2a460b9d1a42d6bd063d2e788.zip FreeBSD-src-0217b84e8a5ba9e2a460b9d1a42d6bd063d2e788.tar.gz |
Check the buffer size when copying the line returned by el_gets() into our
own buffer. Interactively typing in long lines (>1023 characters)
previously overflowed the buffer. Unlike the NetBSD people I don't see the
need to subtract 8 from BUFSIZ, so I just used BUFSIZ-1.
Obtained from: NetBSD
PR: 91110
Diffstat (limited to 'share/syscons')
0 files changed, 0 insertions, 0 deletions