SVN revision: 10450
This commit is contained in:
digitalfallout 2004-06-06 15:43:05 +00:00 committed by digitalfallout
parent 9fb09cae7a
commit 0af884c6ec
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ main(int argc, char *argv[], char *env[])
char argv0[_MAX_PATH];
int i;
strcpy(argv0, argv[0]);
snprintf(argv0, _MAX_PATH, "%s", argv[0]);
/* Linux stores the name of the program in argv[0], but not the path.
* To adjust this, I store a string with the path in argv[0]. To do
* so, I try to get the current path with getcwd(), and if that fails