summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/tounicode.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-08-27 07:28:06 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-08-27 07:28:06 +0000
commitf015f872b280d6456f89fc5a1bebf90250eaf338 (patch)
treeb86800ebf06c05a7211a4de92f60fe1e2e68c621 /Build/source/texk/web2c/pdftexdir/tounicode.c
parenta4fe64f503a9bf54c31c80eddc34475ef9f249d5 (diff)
pdfTeX: Enable and avoid gcc/g++ warnings
git-svn-id: svn://tug.org/texlive/trunk@38216 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/tounicode.c')
-rw-r--r--Build/source/texk/web2c/pdftexdir/tounicode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/tounicode.c b/Build/source/texk/web2c/pdftexdir/tounicode.c
index a246366bf03..16ab10bdae2 100644
--- a/Build/source/texk/web2c/pdftexdir/tounicode.c
+++ b/Build/source/texk/web2c/pdftexdir/tounicode.c
@@ -273,8 +273,8 @@ static void set_glyph_unicode(const char *s, const char* tfmname,
}
/* lookup for glyph name in the main database */
- tmp.name = (char *)s; /* this is okay since we're not calling
- destroy_glyph_unicode_entry on this */
+ snprintf(buf2, SMALL_BUF_SIZE, "%s", s);
+ tmp.name = buf2;
tmp.code = UNI_UNDEF;
ptmp = (glyph_unicode_entry *) avl_find(glyph_unicode_tree, &tmp);
if (ptmp != NULL) {