projects
/
platform
/
upstream
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rx: Fix file corruption with duplicate blocks
[platform/upstream/busybox.git]
/
miscutils
/
rx.c
diff --git
a/miscutils/rx.c
b/miscutils/rx.c
index
e122577
..
972f7ff
100644
(file)
--- a/
miscutils/rx.c
+++ b/
miscutils/rx.c
@@
-172,6
+172,7
@@
static int receive(/*int read_fd, */int file_fd)
/* a repeat of the last block is ok, just ignore it. */
/* this also ignores the initial block 0 which is */
/* meta data. */
+ blockLength = 0;
goto next;
}
if (blockNo != (wantBlockNo & 0xff)) {