diff options
Diffstat (limited to 'src/lua-interface-main.c')
-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; } |