rx: Fix file corruption with duplicate blocks
authorDan Fandrich <dan@coneharvesters.com>
Thu, 3 Nov 2011 09:18:33 +0000 (10:18 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 3 Nov 2011 09:18:33 +0000 (10:18 +0100)
commitf808e777db05bed7b3c0a4aa5f12121fb3d0ca5f
treed10f8cd070cb1b748990734de7dff342f5dad64d
parentb5ebe5fdb3a520114fc4f956687e2c51f3b81429
rx: Fix file corruption with duplicate blocks

Rather than dropping the dupe, rx was appending it to the file.

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/rx.c