Skip to content
Snippets Groups Projects
Commit f415f3ae authored by deuce's avatar deuce
Browse files

Use read() instead of fread() on input.

parent 46f9a76f
Branches
Tags
No related merge requests found
...@@ -2822,7 +2822,8 @@ tODResult ODComGetByte(tPortHandle hPort, char *pbtNext, BOOL bWait) ...@@ -2822,7 +2822,8 @@ tODResult ODComGetByte(tPortHandle hPort, char *pbtNext, BOOL bWait)
return (kODRCNothingWaiting); return (kODRCNothingWaiting);
} }
recv_ret = fread(pbtNext, 1, 1, stdin); /* recv_ret = fread(pbtNext, 1, 1, stdin); */
recv_ret = read(STDIN_FILENO, pbtNext, 1);
if(recv_ret == 1) if(recv_ret == 1)
break; break;
return (kODRCGeneralFailure); return (kODRCGeneralFailure);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment