aboutsummaryrefslogtreecommitdiffstats
path: root/testing/blind/fix-readall.patch
diff options
context:
space:
mode:
authorJean-Louis Fuchs <ganwell@fangorn.ch>2017-03-08 23:10:13 +0100
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-03-10 09:27:19 +0000
commitb3541939ee3df4c109ee9d701c1c8a8466ff1925 (patch)
tree16059ae30a956758082266b778d38813a1ecd8a2 /testing/blind/fix-readall.patch
parent369654629c09a5bacfec85c6ed750884ccf180cd (diff)
downloadaports-b3541939ee3df4c109ee9d701c1c8a8466ff1925.tar.bz2
aports-b3541939ee3df4c109ee9d701c1c8a8466ff1925.tar.xz
testing/blind: new aport
Diffstat (limited to 'testing/blind/fix-readall.patch')
-rw-r--r--testing/blind/fix-readall.patch23
1 files changed, 23 insertions, 0 deletions
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
+