[gs-commits] mupdf/master - 0_6-237-g7eeb735 - Fix typo in pdfinfo that causes colorspace names to be truncated.
Tor Andersson
tor at ghostscript.com
Fri Jul 30 01:22:25 UTC 2010
commit 7eeb73550f9607b407339502944f3881ce3beaf9
Author: Sebastian Rasmussen <sebras at hotmail.com>
Date: Fri Jul 30 01:19:08 2010 +0000
Fix typo in pdfinfo that causes colorspace names to be truncated.
Ignore-this: 8092a937460f9953f1a1bb638906d510
darcs-hash:20100730011908-86a4e-36575b61244f7073fab9180f93ab4053379666a5.gz
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/apps/pdfinfo.c b/apps/pdfinfo.c
index 6c211e1..392d0c9 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",
--
git/hooks/post-receive
More information about the gs-commits
mailing list