diff options
Diffstat (limited to 'Build/source/texk/dvipsk')
-rw-r--r-- | Build/source/texk/dvipsk/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/download.c | 4 |
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); } |