From 280254b8cb789e18a2c78ccd51d1a16f9e198f25 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 21 Mar 2011 12:34:57 +1100 Subject: [PATCH] Forgot to remove the initial pos offset. --- stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.c b/stream.c index 567b58b..23f1627 100644 --- a/stream.c +++ b/stream.c @@ -1187,7 +1187,7 @@ static void rewrite_encrypted(rzip_control *control, struct stream_info *sinfo, uchar *buf, *head; i64 cur_ofs; - cur_ofs = get_seek(control, sinfo->fd); + cur_ofs = get_seek(control, sinfo->fd) - sinfo->initial_pos; head = malloc(25 + SALT_LEN); if (unlikely(!head)) fatal("Failed to malloc head in rewrite_encrypted\n");