aboutsummaryrefslogtreecommitdiffstats
path: root/community/blind/fix-readall.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/blind/fix-readall.patch')
-rw-r--r--community/blind/fix-readall.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/blind/fix-readall.patch b/community/blind/fix-readall.patch
new file mode 100644
index 0000000000..1e5ebfdacb
--- /dev/null
+++ b/community/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
+