diff options
author | Karl Berry <karl@freefriends.org> | 2015-04-10 23:11:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-04-10 23:11:24 +0000 |
commit | 36d3b7a946517887949284403e05cdb9852d5e42 (patch) | |
tree | 20baa493ea387932df15f0cf9ad7704b43aceb88 /Build/source/texk/chktex/chktex-1.7.3-PATCHES/patch-02-unsigned | |
parent | 0d527272b84ca6a34b5ea36669490b69238341de (diff) |
chktex 1.7.3
git-svn-id: svn://tug.org/texlive/trunk@36762 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/chktex/chktex-1.7.3-PATCHES/patch-02-unsigned')
-rw-r--r-- | Build/source/texk/chktex/chktex-1.7.3-PATCHES/patch-02-unsigned | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/texk/chktex/chktex-1.7.3-PATCHES/patch-02-unsigned b/Build/source/texk/chktex/chktex-1.7.3-PATCHES/patch-02-unsigned new file mode 100644 index 00000000000..bced537d868 --- /dev/null +++ b/Build/source/texk/chktex/chktex-1.7.3-PATCHES/patch-02-unsigned @@ -0,0 +1,14 @@ + Avoid undefined behaviour when char is signed. + +diff -ur chktex-1.7.2.orig/FindErrs.c chktex-1.7.2/FindErrs.c +--- chktex-1.7.2.orig/FindErrs.c 2014-06-19 11:19:40.000000000 +0200 ++++ chktex-1.7.2/FindErrs.c 2014-06-19 11:21:36.000000000 +0200 +@@ -342,7 +342,7 @@ + EscapePtr = ++TmpPtr; /* move past NUL terminator */ + while ( *EscapePtr ) + { +- *EscapePtr = tolower(*EscapePtr); ++ *EscapePtr = tolower((unsigned char)*EscapePtr); + ++EscapePtr; + } + |