From a1fa3efd2b8ef4b299218f16041fe2e979508dbe Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 30 Oct 2011 17:33:42 +0100 Subject: [PATCH] core: fix off-by-one error in node::DLOpen() Fixes loading of modules that use the NODE_MODULE macro on POSIX platforms. --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index 572192fba30..a200949f430 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1676,7 +1676,7 @@ Handle DLOpen(const v8::Arguments& args) { #ifdef __POSIX__ pos = strrchr(base, '/'); if (pos != NULL) { - base = pos; + base = pos + 1; } #else // Windows for (;;) {