tools: env: Handle shorter read calls
On some cases, the actual number of bytes read can be shorter
than what was requested. This can be handled gracefully by
taking this difference into account instead of exiting.
Signed-off-by:
Thibault Ferrante <thibault.ferrante@gmail.com>
Loading
Please register or sign in to comment