summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/go32
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-09-15 18:52:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-09-15 18:52:26 +0000
commit8f35817acfcaf88380c86413947cd1b167a5d1e8 (patch)
tree4f4310d1bfd69ae32ceb976e69ba444c118fefab /c/src/lib/libbsp/i386/go32
parentFix from Eric Norum. Here is the comment: (diff)
downloadrtems-8f35817acfcaf88380c86413947cd1b167a5d1e8.tar.bz2
eliminated potential for overfilling buffer on read
Diffstat (limited to 'c/src/lib/libbsp/i386/go32')
-rw-r--r--c/src/lib/libbsp/i386/go32/console/console.c1
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;
}
}