]> git.baikalelectronics.ru Git - uboot.git/commit
tools: env: Handle shorter read calls
authorThibault Ferrante <thibaultferrante@gmail.com>
Tue, 24 Aug 2021 15:29:50 +0000 (17:29 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 2 Sep 2021 15:19:58 +0000 (11:19 -0400)
commit929215a6f9e3d376dce007d518495c65b4bf6956
treec3f4646963db0c7010ca32b024b6947f4f144d9f
parent7e412509a0e9368e4f96514bc1c6d5238ec7871c
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>
tools/env/fw_env.c