mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* load.c (rb_feature_provided): should not calculate len by pointer
subtraction because feature may be a expanded path. [ruby-core:21267] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
094a247a04
commit
1a89baadd3
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu Jan 29 16:22:41 2009 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* load.c (rb_feature_provided): should not calculate len by pointer
|
||||
subtraction because feature may be a expanded path.
|
||||
[ruby-core:21267]
|
||||
|
||||
Thu Jan 29 14:12:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (BASERUBY): erases RUBYOPT at the test.
|
||||
|
|
2
load.c
2
load.c
|
@ -128,8 +128,8 @@ rb_feature_p(const char *feature, const char *ext, int rb, int expanded, const c
|
|||
|
||||
if (fn) *fn = 0;
|
||||
if (ext) {
|
||||
len = ext - feature;
|
||||
elen = strlen(ext);
|
||||
len = strlen(feature) - elen;
|
||||
type = rb ? 'r' : 's';
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue