summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-19 15:54:37 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-19 15:54:37 +0000
commit0ede75a0f9e08363bf4bf58707b8e9f6340a597b (patch)
tree43de3d17abba289ba15b09d76239f31b5efcb52f
parent293fdb45e57673f78af3c381d9f4d35e305e8440 (diff)
downloadruby-0ede75a0f9e08363bf4bf58707b8e9f6340a597b.tar.gz
ruby-0ede75a0f9e08363bf4bf58707b8e9f6340a597b.tar.xz
ruby-0ede75a0f9e08363bf4bf58707b8e9f6340a597b.zip
* dir.c (push_braces): do not push_braces() unless rbrace is found.
(ruby-bugs-ja:PR#469) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--dir.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cf2ed3a8a..a3b937615 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue May 20 00:45:40 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (push_braces): do not push_braces() unless rbrace is found.
+ (ruby-bugs-ja:PR#469)
+
Tue May 20 00:09:41 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/pty/pty.c (pty_finalize_syswait): join (using Thread#value)
diff --git a/dir.c b/dir.c
index b2f438e47..156c1d59d 100644
--- a/dir.c
+++ b/dir.c
@@ -929,7 +929,7 @@ push_braces(ary, s, flags)
p++;
}
- if (lbrace) {
+ if (lbrace && rbrace) {
int len = strlen(s);
buf = xmalloc(len + 1);
memcpy(buf, s, lbrace-s);