fix reading from NULL; sentinel lost due to conversion to char from int

This commit is contained in:
KJD 2013-12-29 11:04:56 -05:00
parent 4b08676a48
commit 23eb8ff825
1 changed files with 2 additions and 2 deletions

View File

@ -292,11 +292,11 @@ long cooked_read(struct dhdr FAR **pdev, size_t n, char FAR *bp)
return xfer; return xfer;
} }
STATIC unsigned char read_char_sft_dev(int sft_in, int sft_out, STATIC unsigned read_char_sft_dev(int sft_in, int sft_out,
struct dhdr FAR **pdev, struct dhdr FAR **pdev,
BOOL check_break) BOOL check_break)
{ {
unsigned char c; unsigned c;
if (*pdev) if (*pdev)
{ {