* 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/branches/ruby_1_8@17916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-07-06 16:24:45 +00:00
parent 498af97173
commit 56174539f1
2 changed files with 6 additions and 1 deletions

2
file.c
View file

@ -3044,7 +3044,7 @@ rb_file_s_extname(klass, fname)
p = last;
break;
}
e = dot;
if (*last == '.') e = dot;
continue;
#else
e = p; /* get the last dot of the last component */