From 7cbf8706797a937ff44b550df78a4c6d38753a23 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 17 Mar 2011 17:25:23 +1100 Subject: [PATCH] fdout_seekto will not always be seeking to zero. --- lrzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lrzip.c b/lrzip.c index e7aca13..199a513 100644 --- a/lrzip.c +++ b/lrzip.c @@ -96,7 +96,7 @@ static i64 fdout_seekto(rzip_control *control, i64 pos) } return 0; } - return lseek(control->fd_out, 0, SEEK_SET); + return lseek(control->fd_out, pos, SEEK_SET); } void write_magic(rzip_control *control)