1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* dir.c (rb_push_glob): should work for NUL delimited patterns.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2005-01-21 08:01:20 +00:00
parent 13db60aad3
commit b90b86cab5
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Jan 21 16:58:10 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* dir.c (rb_push_glob): should work for NUL delimited patterns.
Fri Jan 21 13:58:37 2005 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb (u8tou16): fixed typo. fixed: [ruby-lis:40546]

2
dir.c
View file

@ -1224,11 +1224,11 @@ rb_push_glob(str, flags)
ary = rb_ary_new();
SafeStringValue(str);
buf = rb_str_new(0, RSTRING(str)->len + 1);
p = RSTRING(str)->ptr;
pend = p + RSTRING(str)->len;
while (p < pend) {
buf = rb_str_new(0, pend - p + 1);
t = RSTRING(buf)->ptr;
nest = maxnest = 0;
while (p < pend && isdelim(*p)) p++;