source: fix typo 33/136133/1
authorSooyoung Ha <yoosah.ha@samsung.com>
Wed, 28 Jun 2017 07:51:21 +0000 (16:51 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Wed, 28 Jun 2017 07:51:21 +0000 (16:51 +0900)
Change-Id: I7c68c0689e3e62361491285ce8107879c24b0209
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
src/transport.c

index faf5482..d6ecd66 100644 (file)
@@ -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;