about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-04-17 11:59:38 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-04-17 11:59:38 +0000
commit25bb07b80e026f2d1e2a7656a6a29ca9b3686b0e (patch)
tree94e5757c5098b9a756302923a3cac8e42add1ce2
parent212bbe3938d802147ace49632e7e9c43d0f6592b (diff)
downloadzsh-25bb07b80e026f2d1e2a7656a6a29ca9b3686b0e.tar.gz
zsh-25bb07b80e026f2d1e2a7656a6a29ca9b3686b0e.tar.xz
zsh-25bb07b80e026f2d1e2a7656a6a29ca9b3686b0e.zip
Christoph Bauer: users/11416: bad use of VARARR()
-rw-r--r--ChangeLog5
-rw-r--r--Src/utils.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 31d0b6b5c..c0d7df130 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-17  Peter Stephenson  <pws@csr.com>
+
+	* Christoph Bauer: users/11416: Src/utils.c: bad use
+	of VARRAR confused some compilers.
+
 2007-04-17  Geoff Wing  <gcw@zsh.org>
 
 	* unposted: LICENCE: update year to 2007
diff --git a/Src/utils.c b/Src/utils.c
index 2e4df845a..6041e092b 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -3055,8 +3055,8 @@ wcsitype(wchar_t c, int itype)
     if (len == 0) {
 	/* NULL is special */
 	return zistype(0, itype);
-    } else if (len == 1 && isascii(*outstr)) {
-	return zistype(*outstr, itype);
+    } else if (len == 1 && isascii(outstr[0])) {
+	return zistype(outstr[0], itype);
     } else {
 	switch (itype) {
 	case IIDENT: