diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-06 16:24:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-06 16:24:45 +0000 |
commit | 4b843da8697445005f18cef2103b68ad32923433 (patch) | |
tree | 54b2d75b0531035befcb1a3892375e7d47c6168f /file.c | |
parent | 15743791437f8cc8d7bbf4afa5f92c72f1e03fc0 (diff) | |
download | ruby-4b843da8697445005f18cef2103b68ad32923433.tar.gz |
* 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
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |