From b3541939ee3df4c109ee9d701c1c8a8466ff1925 Mon Sep 17 00:00:00 2001 From: Jean-Louis Fuchs Date: Wed, 8 Mar 2017 23:10:13 +0100 Subject: testing/blind: new aport --- testing/blind/fix-readall.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 testing/blind/fix-readall.patch (limited to 'testing/blind/fix-readall.patch') diff --git a/testing/blind/fix-readall.patch b/testing/blind/fix-readall.patch new file mode 100644 index 0000000000..1e5ebfdacb --- /dev/null +++ b/testing/blind/fix-readall.patch @@ -0,0 +1,23 @@ +--- + src/util.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/util.c b/src/util.c +index 6c1bd0a..8967392 100644 +--- a/src/util.c ++++ b/src/util.c +@@ -136,9 +136,9 @@ readall(int fd, void *buf, size_t n) + return -1; + if (r == 0) + break; +- r += (size_t)r; ++ ptr += (size_t)r; + } +- return r; ++ return ptr; + } + + int +-- +2.11.1 + -- cgit v1.2.3