mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (rb_file_s_extname): fix for file name with spaces.
[ruby-talk:307404] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1574379143
commit
4b843da869
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Jul 7 01:24:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* file.c (rb_file_s_extname): fix for file name with spaces.
|
||||
[ruby-talk:307404]
|
||||
|
||||
Mon Jul 7 00:59:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* thread_pthread.c (ruby_init_stack): prior STACK_END_ADDRESS if
|
||||
|
|
2
file.c
2
file.c
|
@ -3123,7 +3123,7 @@ rb_file_s_extname(VALUE klass, VALUE fname)
|
|||
p = last;
|
||||
break;
|
||||
}
|
||||
e = dot;
|
||||
if (*last == '.') e = dot;
|
||||
continue;
|
||||
#else
|
||||
e = p; /* get the last dot of the last component */
|
||||
|
|
Loading…
Reference in a new issue