summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvipdfmx/src/tt_cmap.c
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2012-12-12 02:21:57 +0000
committerKhaled Hosny <khaledhosny@eglug.org>2012-12-12 02:21:57 +0000
commit2d84ed9d0b34a1bd72ee7e33e36549e81f06fbe8 (patch)
tree7121c51808317fe37560eff698d6e36c09547314 /Build/source/texk/xdvipdfmx/src/tt_cmap.c
parent18d1aac416463821223103ae744745dae0659d13 (diff)
Fix memory allocation from previous commit
git-svn-id: svn://tug.org/texlive/trunk@28509 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/tt_cmap.c')
-rw-r--r--Build/source/texk/xdvipdfmx/src/tt_cmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/tt_cmap.c b/Build/source/texk/xdvipdfmx/src/tt_cmap.c
index 04e101c100a..a95cbe2d0b4 100644
--- a/Build/source/texk/xdvipdfmx/src/tt_cmap.c
+++ b/Build/source/texk/xdvipdfmx/src/tt_cmap.c
@@ -1091,7 +1091,7 @@ otf_create_ToUnicode_stream (const char *font_name,
* happens when XeTeX embeds full font path
* https://sourceforge.net/p/xetex/bugs/52/
*/
- normalized_font_name = NEW(strlen(font_name), char);
+ normalized_font_name = NEW(strlen(font_name)+1, char);
strcpy(normalized_font_name, font_name);
for (i = 0; i < strlen(font_name); ++i) {
if (normalized_font_name[i] == '/')