From 2d84ed9d0b34a1bd72ee7e33e36549e81f06fbe8 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 12 Dec 2012 02:21:57 +0000 Subject: Fix memory allocation from previous commit git-svn-id: svn://tug.org/texlive/trunk@28509 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipdfmx/src/tt_cmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Build/source/texk/dvipdfmx/src') 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] == '/') -- cgit v1.2.3