diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-03-28 15:16:38 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-04-03 17:45:05 +0200 |
commit | d9f0fdfe1ac986816a3376ee0271f84fb549b0bf (patch) | |
tree | 39e4a7b1d5aa79c0a9e07a6ee8a56ac23520e372 /source | |
parent | fec19cecf3cde537dceac7bd1da7f7f0c7097cec (diff) | |
download | mupdf-d9f0fdfe1ac986816a3376ee0271f84fb549b0bf.tar.xz |
Fix error message in tar archive code.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/untar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/untar.c b/source/fitz/untar.c index ad93e1e3..1588a8ac 100644 --- a/source/fitz/untar.c +++ b/source/fitz/untar.c @@ -66,7 +66,7 @@ static void ensure_tar_entries(fz_context *ctx, fz_tar_archive *tar) offset = fz_tell(ctx, file); n = fz_read(ctx, file, (unsigned char *) name, nelem(name)); if (n < nelem(name)) - fz_throw(ctx, FZ_ERROR_GENERIC, "premature end of data in zip entry name"); + fz_throw(ctx, FZ_ERROR_GENERIC, "premature end of data in tar entry name"); name[nelem(name) - 1] = '\0'; if (strlen(name) == 0) @@ -75,7 +75,7 @@ static void ensure_tar_entries(fz_context *ctx, fz_tar_archive *tar) fz_seek(ctx, file, 24, 1); n = fz_read(ctx, file, (unsigned char *) octsize, nelem(octsize)); if (n < nelem(octsize)) - fz_throw(ctx, FZ_ERROR_GENERIC, "premature end of data in zip entry size"); + fz_throw(ctx, FZ_ERROR_GENERIC, "premature end of data in tar entry size"); size = otoi(octsize); fz_seek(ctx, file, 20, 1); |