From e5b8a1a0369901d3d73384cf553619d9351679aa Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Thu, 19 Jun 2014 11:14:35 +0000 Subject: texk/*/, utils/*/: Avoid undefined behaviour when char is signed git-svn-id: svn://tug.org/texlive/trunk@34310 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/afm2pl/ChangeLog | 5 ++++- Build/source/texk/afm2pl/afm2pl.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'Build/source/texk/afm2pl') diff --git a/Build/source/texk/afm2pl/ChangeLog b/Build/source/texk/afm2pl/ChangeLog index f47e7bc065c..f5288f93ee6 100644 --- a/Build/source/texk/afm2pl/ChangeLog +++ b/Build/source/texk/afm2pl/ChangeLog @@ -1,3 +1,7 @@ +2014-06-19 Peter Breitenlohner + + * afm2pl.c: Avoid undefined behaviour when char is signed. + 2014-06-16 Peter Breitenlohner * Makefile.am: Drop the obsolete ACLOCAL_AMFLAGS. @@ -7,7 +11,6 @@ Incorporated patches for the man page from Eric S. Raymond - 2012-12-07 Peter Breitenlohner * afm2pl.c: Drop unused variable (gcc-4.6 warning). diff --git a/Build/source/texk/afm2pl/afm2pl.c b/Build/source/texk/afm2pl/afm2pl.c index 6f7514eb30c..07cff18a3a4 100644 --- a/Build/source/texk/afm2pl/afm2pl.c +++ b/Build/source/texk/afm2pl/afm2pl.c @@ -1821,7 +1821,7 @@ writepl(void) tbuf[39] = 0; } tbp = tbuf; - while (*tbp) { *tbp = toupper (*tbp); tbp++; } + while (*tbp) { *tbp = toupper ((unsigned char)*tbp); tbp++; } ploutln2 ("(CODINGSCHEME %s)", tbuf); } ploutln ("(DESIGNSIZE R 10.0)"); -- cgit v1.2.3