diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-16 10:54:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-16 10:54:37 +0200 |
commit | bdc5a5d220edf8c8a2685f9f3f066798f521f9e8 (patch) | |
tree | 325523510c33b49db7980a33ac917b48f1eb856e /lib | |
parent | a1ac6b5f64cda522ecdcb308a414b4aa21cc99be (diff) | |
parent | f8a6bc23fdfb5a6f17032fc73b3b7f3ca33c5d2a (diff) | |
download | barebox-bdc5a5d220edf8c8a2685f9f3f066798f521f9e8.tar.gz |
Merge branch 'for-next/misc'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/uncompress.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/uncompress.c b/lib/uncompress.c index c47d319dbb..5c0d1e9f4d 100644 --- a/lib/uncompress.c +++ b/lib/uncompress.c @@ -24,6 +24,7 @@ #include <filetype.h> #include <malloc.h> #include <fs.h> +#include <libfile.h> static void *uncompress_buf; static unsigned int uncompress_size; @@ -142,7 +143,7 @@ static int uncompress_infd, uncompress_outfd; static int fill_fd(void *buf, unsigned int len) { - return read(uncompress_infd, buf, len); + return read_full(uncompress_infd, buf, len); } static int flush_fd(void *buf, unsigned int len) |