summaryrefslogtreecommitdiff
path: root/src/lua-interface-main.c
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2010-11-03 14:30:14 -0700
committerPixel <pixel@nobis-crew.org>2010-11-03 14:30:14 -0700
commita4d884372061d5dea8093be6984af1ecedf11e54 (patch)
tree3e713a104776487743745c7a9484559ecb200dd5 /src/lua-interface-main.c
parent8ed0e40ddde1c8da6ddb6ca0ee8de174a7814280 (diff)
Fixing search path bug.
Diffstat (limited to 'src/lua-interface-main.c')
-rw-r--r--src/lua-interface-main.c2
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;
}