summaryrefslogtreecommitdiff
path: root/Build/source/texk/chktex/chktex-1.7.2-PATCHES/patch-01-sequence-point
blob: 469c1fa77cad7c89fcba10a7253fd700705d4502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);