From 53a484bc4826216df1e19ff9100f1c49e26faa99 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 7 Jan 2020 10:48:08 +0000 Subject: [PATCH] tytools - fix ty_write to return lenght written and not 0 on success the change to ty_write from write broke a bunch of tytools... this fixes that. fix change broke it: 0eb8948d676bcef01aeb17081b9c11c95f912a8f --- src/bin/tycommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/tycommon.c b/src/bin/tycommon.c index 0c34503d..18776374 100644 --- a/src/bin/tycommon.c +++ b/src/bin/tycommon.c @@ -36,5 +36,5 @@ ty_write(int fd, const void *buf, size_t count) data += res; len -= res; } - return len; + return count; }