summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfmx/src
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/dvipdfmx/src
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/dvipdfmx/src')
-rw-r--r--Build/source/texk/dvipdfmx/src/tt_cmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfmx/src/tt_cmap.c b/Build/source/texk/dvipdfmx/src/tt_cmap.c
index b5400682a4d..b9fdae5b445 100644
--- a/Build/source/texk/dvipdfmx/src/tt_cmap.c
+++ b/Build/source/texk/dvipdfmx/src/tt_cmap.c
@@ -1040,7 +1040,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] == '/')