From 090b271af70de1538e1672bc423c661399a16e11 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Fri, 30 Jul 2010 01:19:08 +0000 Subject: Fix typo in pdfinfo that causes colorspace names to be truncated. --- apps/pdfinfo.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'apps') 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", -- cgit v1.2.3