From 5bc288f1aa5f4a0bfad14a2840a18bf86c48c57e Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 12 Jul 2016 21:11:18 +0200 Subject: [PATCH] blaze822: hackfix --- blaze822.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blaze822.c b/blaze822.c index 7c8821e..ad10e64 100644 --- a/blaze822.c +++ b/blaze822.c @@ -389,7 +389,7 @@ blaze822_body(struct message *mesg, char *file) if (fd < 0) return fd; - if (lseek(fd, mesg->end - mesg->msg, SEEK_SET) < 0) { + if (lseek(fd, mesg->end - mesg->msg - 2, SEEK_SET) < 0) { perror("lseek"); close(fd); return -1;