From 1240e722013372822d085b29155488b9732590f3 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Fri, 12 Nov 2010 23:49:28 +0000 Subject: Change i + + * download.c Change i * 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; iglyphs = (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); } -- cgit v1.2.3