From 6de1b632732c5fec08d29ed715428ff2b110b8e6 Mon Sep 17 00:00:00 2001 From: Sooyoung Ha Date: Wed, 28 Jun 2017 16:51:21 +0900 Subject: [PATCH] source: fix typo Change-Id: I7c68c0689e3e62361491285ce8107879c24b0209 Signed-off-by: Sooyoung Ha --- src/transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport.c b/src/transport.c index faf5482..d6ecd66 100644 --- a/src/transport.c +++ b/src/transport.c @@ -876,7 +876,7 @@ int readx(int fd, void *ptr, size_t len) D("readx: fd=%d wanted=%zu\n", fd, len); while (l > 0) { - r = sdb_read(fd, p, len); + r = sdb_read(fd, p, l); if (r > 0 && r <= l) { l -= r; p += r; -- 2.7.4