diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-02 12:31:54 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-02 12:31:54 +0000 |
commit | 4911dacf8a9fd770f403274ecc081ebdd19381bd (patch) | |
tree | 5e55efd79a8bca63db9e59a35445094581d160cd /Build/source/texk/ttf2pk/ttfenc.c | |
parent | 54bed52730b7a0af68847ac70f93bd1debcaa8dd (diff) |
texk/ttf2pk: Add a test case and fix a few small bugs
git-svn-id: svn://tug.org/texlive/trunk@22279 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttf2pk/ttfenc.c')
-rw-r--r-- | Build/source/texk/ttf2pk/ttfenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/ttf2pk/ttfenc.c b/Build/source/texk/ttf2pk/ttfenc.c index 50998e6f396..8439f3c146e 100644 --- a/Build/source/texk/ttf2pk/ttfenc.c +++ b/Build/source/texk/ttf2pk/ttfenc.c @@ -1053,7 +1053,7 @@ code_to_adobename(long code) if (current_encoding_scheme == encFontSpecific) { - p = (char *)mymalloc(9); + p = (char *)mymalloc(11); sprintf(p, ".%c0x%lx", (code >= 0x1000000) ? 'g' : 'c', (code & 0xFFFFFF)); return p; @@ -1070,7 +1070,7 @@ code_to_adobename(long code) return current_table[n].adobename; } - p = (char *)mymalloc(9); + p = (char *)mymalloc(11); sprintf(p, ".%c0x%lx", (code >= 0x1000000) ? 'g' : 'c', (code & 0xFFFFFF)); return p; |