diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2010-07-30 01:19:08 +0000 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2010-07-30 01:19:08 +0000 |
commit | 090b271af70de1538e1672bc423c661399a16e11 (patch) | |
tree | 1179f4468e2b49b2e2963f0d6f18a3ab30e41416 /apps | |
parent | c3da7ee2bbc0106fb38de167c5b8dc09f8069995 (diff) | |
download | mupdf-090b271af70de1538e1672bc423c661399a16e11.tar.xz |
Fix typo in pdfinfo that causes colorspace names to be truncated.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfinfo.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/pdfinfo.c b/apps/pdfinfo.c index 6c211e12..392d0c96 100644 --- a/apps/pdfinfo.c +++ b/apps/pdfinfo.c @@ -736,13 +736,13 @@ printinfo(char *filename, int show, int page) cs[3 + j] = '\0'; } if (strstr(cs, "ICC")) - fz_strlcpy(cs, "ICC", 3); + fz_strlcpy(cs, "ICC", 4); if (strstr(cs, "Indexed")) - fz_strlcpy(cs, "Idx", 3); + fz_strlcpy(cs, "Idx", 4); if (strstr(cs, "Pattern")) - fz_strlcpy(cs, "Pat", 3); + fz_strlcpy(cs, "Pat", 4); if (strstr(cs, "Separation")) - fz_strlcpy(cs, "Sep", 3); + fz_strlcpy(cs, "Sep", 4); } if (image[i].u.image.altcs) { @@ -755,13 +755,13 @@ printinfo(char *filename, int show, int page) altcs[j + 6] = '\0'; } if (strstr(altcs, "ICC")) - fz_strlcpy(altcs, "ICC", 3); + fz_strlcpy(altcs, "ICC", 4); if (strstr(altcs, "Indexed")) - fz_strlcpy(altcs, "Idx", 3); + fz_strlcpy(altcs, "Idx", 4); if (strstr(altcs, "Pattern")) - fz_strlcpy(altcs, "Pat", 3); + fz_strlcpy(altcs, "Pat", 4); if (strstr(altcs, "Separation")) - fz_strlcpy(altcs, "Sep", 3); + fz_strlcpy(altcs, "Sep", 4); } printf(" ] %dx%d %dbpc %s%s%s (%d %d R)\n", |