eliminated potential for overfilling buffer on read

This commit is contained in:
Joel Sherrill
1997-09-15 18:52:26 +00:00
parent 8d053460ff
commit 8f35817acf
19 changed files with 0 additions and 19 deletions

View File

@@ -528,7 +528,6 @@ rtems_device_driver console_read(
buffer[ count ] = INBYTE( minor );
if (buffer[ count ] == '\n' || buffer[ count ] == '\r') {
buffer[ count++ ] = '\n';
buffer[ count ] = 0;
break;
}
}