minor bugfix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7bcc135504
commit
f605a6fcb7
@ -131,6 +131,7 @@ rb_dlhandle_sym(VALUE self, VALUE sym)
|
||||
void *handle;
|
||||
const char *name;
|
||||
const char *err;
|
||||
int i;
|
||||
|
||||
rb_secure(2);
|
||||
|
||||
@ -162,7 +163,6 @@ rb_dlhandle_sym(VALUE self, VALUE sym)
|
||||
#if defined(__CYGWIN__) || defined(WIN32) || defined(__MINGW32__)
|
||||
{
|
||||
int len = strlen(name);
|
||||
int i;
|
||||
char *name_a = (char*)xmalloc(len+2);
|
||||
strcpy(name_a, name);
|
||||
name_a[len] = 'A';
|
||||
|
Loading…
x
Reference in New Issue
Block a user