Forgot to remove the initial pos offset.

This commit is contained in:
Con Kolivas 2011-03-21 12:34:57 +11:00
parent fd9bbfe64a
commit 280254b8cb

View file

@ -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");