changeset 6047:ab6eb517d144

*** empty log message ***
author Karl Heuer <kwzh@gnu.org>
date Wed, 23 Feb 1994 23:04:30 +0000
parents 44935e53cede
children ff40882c5578
files src/regex.c
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Wed Feb 23 19:47:45 1994 +0000
+++ b/src/regex.c	Wed Feb 23 23:04:30 1994 +0000
@@ -4463,8 +4463,10 @@
 	  mcnt = (int) Sword;
         matchsyntax:
 	  PREFETCH ();
-	  if (SYNTAX (*d++) != (enum syntaxcode) mcnt)
-            goto fail;
+	  /* Can't use *d++ here; SYNTAX may be an unsafe macro.  */
+	  d++;
+	  if (SYNTAX (d[-1]) != (enum syntaxcode) mcnt)
+	    goto fail;
           SET_REGS_MATCHED ();
 	  break;
 
@@ -4478,8 +4480,10 @@
 	  mcnt = (int) Sword;
         matchnotsyntax:
 	  PREFETCH ();
-	  if (SYNTAX (*d++) == (enum syntaxcode) mcnt)
-            goto fail;
+	  /* Can't use *d++ here; SYNTAX may be an unsafe macro.  */
+	  d++;
+	  if (SYNTAX (d[-1]) == (enum syntaxcode) mcnt)
+	    goto fail;
 	  SET_REGS_MATCHED ();
           break;