mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
26874e2e07
commit
a1fa3efd2b
1 file changed
+1
-1
+1
-1
@@ -1676,7 +1676,7 @@ Handle<Value> DLOpen(const v8::Arguments& args) {
|
||||
#ifdef __POSIX__
|
||||
pos = strrchr(base, '/');
|
||||
if (pos != NULL) {
|
||||
base = pos;
|
||||
base = pos + 1;
|
||||
}
|
||||
#else // Windows
|
||||
for (;;) {
|
||||
|
||||
Reference in new issue
Block a user