diff options
Diffstat (limited to 'Build/source/texk/chktex/chktex-1.7.2-PATCHES/patch-01-sequence-point')
-rw-r--r-- | Build/source/texk/chktex/chktex-1.7.2-PATCHES/patch-01-sequence-point | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/texk/chktex/chktex-1.7.2-PATCHES/patch-01-sequence-point b/Build/source/texk/chktex/chktex-1.7.2-PATCHES/patch-01-sequence-point new file mode 100644 index 00000000000..469c1fa77ca --- /dev/null +++ b/Build/source/texk/chktex/chktex-1.7.2-PATCHES/patch-01-sequence-point @@ -0,0 +1,14 @@ + Avoid an operation that may be undefined. + +diff -ur chktex-1.7.2.orig/FindErrs.c chktex-1.7.2/FindErrs.c +--- chktex-1.7.2.orig/FindErrs.c 2013-04-18 05:43:10.000000000 +0200 ++++ chktex-1.7.2/FindErrs.c 2014-06-19 11:19:40.000000000 +0200 +@@ -1171,7 +1171,7 @@ + tmp = stpcpy(tmp, SilentCase.Stack.Data[i]); + *tmp++ = '|'; + } +- tmp = stpcpy(--tmp, ")"); ++ tmp = stpcpy(tmp - 1, ")"); + + SilentRegex = malloc( sizeof(regex_t) ); + rc = regcomp(SilentRegex, pattern, REGEX_FLAGS); |