aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qtbz2.c')
-rw-r--r--qtbz2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qtbz2.c b/qtbz2.c
index 314eecd..a02b477 100644
--- a/qtbz2.c
+++ b/qtbz2.c
@@ -139,7 +139,8 @@ _tbz2_write_file(FILE *src, int dir_fd, const char *dst, size_t len)
FILE *out;
if (!dst) {
- fseek(src, len, SEEK_CUR);
+ if (fseek(src, len, SEEK_CUR) == -1)
+ errp("cannot seek to pos %zd: %s", len, strerror(errno));
return;
}