From a4d884372061d5dea8093be6984af1ecedf11e54 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 3 Nov 2010 14:30:14 -0700 Subject: Fixing search path bug. --- src/lua-interface-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3