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:
Ben Noordhuis 2011-10-30 17:33:42 +01:00
parent 26874e2e07
commit a1fa3efd2b

View File

@ -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 (;;) {