mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
lib_fgets: don't check for printability, as it doesn't allow to work with extended ASCII
This commit is contained in:
parent
bfbe705e3f
commit
74230c5371
1 changed files with 2 additions and 4 deletions
|
@ -216,11 +216,9 @@ FAR char *lib_fgets(FAR char *buf, size_t buflen, FILE *stream,
|
|||
}
|
||||
}
|
||||
|
||||
/* Otherwise, check if the character is printable and, if so, put the
|
||||
* character in the line buffer
|
||||
*/
|
||||
/* Otherwise, put the character in the line buffer */
|
||||
|
||||
else if (isprint(ch))
|
||||
else
|
||||
{
|
||||
buf[nch++] = ch;
|
||||
|
||||
|
|
Loading…
Reference in a new issue