Commit f415f3ae authored by deuce's avatar deuce
Browse files

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

parent 46f9a76f
......@@ -2822,7 +2822,8 @@ tODResult ODComGetByte(tPortHandle hPort, char *pbtNext, BOOL bWait)
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)
break;
return (kODRCGeneralFailure);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment