diff options
author | Pixel <pixel@nobis-crew.org> | 2010-11-03 14:30:14 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2010-11-03 14:30:14 -0700 |
commit | a4d884372061d5dea8093be6984af1ecedf11e54 (patch) | |
tree | 3e713a104776487743745c7a9484559ecb200dd5 | |
parent | 8ed0e40ddde1c8da6ddb6ca0ee8de174a7814280 (diff) |
Fixing search path bug.
-rw-r--r-- | src/lua-interface-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua-interface-main.c b/src/lua-interface-main.c index 5c16ef5..7db4d2b 100644 --- a/src/lua-interface-main.c +++ b/src/lua-interface-main.c @@ -88,7 +88,7 @@ int main(int argc, char ** argv) { strcpy(searchpath, argv[0]); slash = strrchr(searchpath, '/'); if (slash) { - *slash = 0; + *(++slash) = 0; } else { searchpath[0] = 0; } |