about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2005-04-26 16:23:57 +0000
committerBart Schaefer <barts@users.sourceforge.net>2005-04-26 16:23:57 +0000
commit92da657e8503e884e22e1a60e674679d72c92da4 (patch)
treed15558c33168dfc6401ee0e47b3043f506715ed7 /Src
parent6114ee2fe31627d9570b458d403f28f0a08aeace (diff)
downloadzsh-92da657e8503e884e22e1a60e674679d72c92da4.tar.gz
zsh-92da657e8503e884e22e1a60e674679d72c92da4.tar.xz
zsh-92da657e8503e884e22e1a60e674679d72c92da4.zip
21195 fix for 21170
Diffstat (limited to 'Src')
-rw-r--r--Src/pattern.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/pattern.c b/Src/pattern.c
index 1033c776f..ed88bb7ce 100644
--- a/Src/pattern.c
+++ b/Src/pattern.c
@@ -1552,8 +1552,10 @@ pattryrefs(Patprog prog, char *string, int stringlen, int unmetalen,
 	*nump = 0;
     }
     /* inherited from domatch, but why, exactly? */
-    if (*string == Nularg)
+    if (*string == Nularg) {
 	string++;
+	unmetalen--;
+    }
 
     if (stringlen < 0)
 	stringlen = strlen(string);