diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-09-15 18:52:26 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-09-15 18:52:26 +0000 |
commit | 8f35817acfcaf88380c86413947cd1b167a5d1e8 (patch) | |
tree | 4f4310d1bfd69ae32ceb976e69ba444c118fefab /c/src/lib/libbsp/i386/go32/console/console.c | |
parent | Fix from Eric Norum. Here is the comment: (diff) | |
download | rtems-8f35817acfcaf88380c86413947cd1b167a5d1e8.tar.bz2 |
eliminated potential for overfilling buffer on read
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/i386/go32/console/console.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/i386/go32/console/console.c b/c/src/lib/libbsp/i386/go32/console/console.c index 0649326846..0449686da8 100644 --- a/c/src/lib/libbsp/i386/go32/console/console.c +++ b/c/src/lib/libbsp/i386/go32/console/console.c @@ -202,7 +202,6 @@ rtems_device_driver console_read( if (buffer[ count ] == '\n' || buffer[ count ] == '\r') { /* What if this goes past the end of the buffer? We're hosed. [bhc] */ buffer[ count++ ] = '\n'; - buffer[ count ] = 0; break; } } |