about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2000-06-02 10:09:13 +0000
committerWayne Davison <wayned@users.sourceforge.net>2000-06-02 10:09:13 +0000
commit192dc1228a78de32591357c7c074bffe777c82f5 (patch)
tree018020863f94a3ddc94acc33240d5270c59b9caa
parent0adb04abd302cc86944aa468590bab84e9acf542 (diff)
downloadzsh-192dc1228a78de32591357c7c074bffe777c82f5.tar.gz
zsh-192dc1228a78de32591357c7c074bffe777c82f5.tar.xz
zsh-192dc1228a78de32591357c7c074bffe777c82f5.zip
Fixed glob array indexing.
-rw-r--r--Src/glob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/glob.c b/Src/glob.c
index 46fef88ea..fb15a4efc 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -1435,7 +1435,7 @@ glob(LinkList list, LinkNode np, int nountok)
 	end += matchct + 1;
     else if (end > matchct)
 	end = matchct;
-    if (end -= first > 0) {
+    if ((end -= first) > 0) {
 	matchptr = matchbuf + matchct - first - end;
 	while (end-- > 0) {		/* insert matches in the arg list */
 	    insertlinknode(list, node, matchptr->name);