mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Forgot to remove the initial pos offset.
This commit is contained in:
parent
fd9bbfe64a
commit
280254b8cb
2
stream.c
2
stream.c
|
|
@ -1187,7 +1187,7 @@ static void rewrite_encrypted(rzip_control *control, struct stream_info *sinfo,
|
||||||
uchar *buf, *head;
|
uchar *buf, *head;
|
||||||
i64 cur_ofs;
|
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);
|
head = malloc(25 + SALT_LEN);
|
||||||
if (unlikely(!head))
|
if (unlikely(!head))
|
||||||
fatal("Failed to malloc head in rewrite_encrypted\n");
|
fatal("Failed to malloc head in rewrite_encrypted\n");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue