diff options
Diffstat (limited to 'Modules/getpath.c')
-rw-r--r-- | Modules/getpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c index 9653d3e..f28f4c6 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -471,7 +471,7 @@ calculate_path(void) if (!ismodule(argv0_path)) { /* We are in the build directory so use the name of the executable - we know that the absolute path is passed */ - strncpy(argv0_path, prog, MAXPATHLEN); + strncpy(argv0_path, progpath, MAXPATHLEN); } else { /* Use the location of the library as the progpath */ |