summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-11-12 23:49:28 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-11-12 23:49:28 +0000
commit1240e722013372822d085b29155488b9732590f3 (patch)
treec7eeec4707990ee6b2cfb4a3a1cd59c1548f5a05 /Build
parent63dddf15f1e38b4ee506e20300b24981a7cecc60 (diff)
Change i<MAX_CHAR_CODE into i<=MAX_CHAR_CODE, because MAX_CHAR_CODE is 255 now.
git-svn-id: svn://tug.org/texlive/trunk@20417 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipsk/ChangeLog5
-rw-r--r--Build/source/texk/dvipsk/download.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog
index fc994bb101f..f6e36551bd1 100644
--- a/Build/source/texk/dvipsk/ChangeLog
+++ b/Build/source/texk/dvipsk/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-13 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * download.c Change i<MAX_CHAR_CODE into i<=MAX_CHAR_CODE, because
+ MAX_CHAR_CODE is 255 now.
+
2010-11-12 Peter Breitenlohner <peb@mppmu.mpg.de>
* download.c [MAX_CHAR_CODE]: Define as 255 (not 256).
diff --git a/Build/source/texk/dvipsk/download.c b/Build/source/texk/dvipsk/download.c
index f0d84fc3d9a..dcdc2063628 100644
--- a/Build/source/texk/dvipsk/download.c
+++ b/Build/source/texk/dvipsk/download.c
@@ -356,8 +356,8 @@ static const char **getEncoding(char *encoding) {
p->next = seenEncodings;
seenEncodings = p;
p->name = xstrdup(encoding);
- p->glyphs = (const char **)mymalloc((MAX_CHAR_CODE+1) * sizeof(char *));
- for (i=0; i<MAX_CHAR_CODE; i++)
+ p->glyphs = (const char **)mymalloc((MAX_CHAR_CODE+2) * sizeof(char *));
+ for (i=0; i<=MAX_CHAR_CODE; i++)
p->glyphs[i] = ".notdef";
load_enc(encoding, p->glyphs);
}