core: fix off-by-one error in node::DLOpen()
Fixes loading of modules that use the NODE_MODULE macro on POSIX platforms.
This commit is contained in:
parent
26874e2e07
commit
a1fa3efd2b
@ -1676,7 +1676,7 @@ Handle<Value> DLOpen(const v8::Arguments& args) {
|
|||||||
#ifdef __POSIX__
|
#ifdef __POSIX__
|
||||||
pos = strrchr(base, '/');
|
pos = strrchr(base, '/');
|
||||||
if (pos != NULL) {
|
if (pos != NULL) {
|
||||||
base = pos;
|
base = pos + 1;
|
||||||
}
|
}
|
||||||
#else // Windows
|
#else // Windows
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user