Commit 46f9a76f authored by deuce's avatar deuce
Browse files

Fail on failed read of stdin

parent 068b6162
......@@ -2823,7 +2823,7 @@ tODResult ODComGetByte(tPortHandle hPort, char *pbtNext, BOOL bWait)
}
recv_ret = fread(pbtNext, 1, 1, stdin);
if(recv_ret != -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