diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/msdos.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/msdos.c b/src/msdos.c index 83c644f2a5d..4adb6408fed 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -693,7 +693,8 @@ init_environment (argc, argv, skip_args) | |||
| 693 | 693 | ||
| 694 | /* Find our root from argv[0]. Assuming argv[0] is, say, | 694 | /* Find our root from argv[0]. Assuming argv[0] is, say, |
| 695 | "c:/emacs/bin/emacs.exe" our root will be "c:/emacs". */ | 695 | "c:/emacs/bin/emacs.exe" our root will be "c:/emacs". */ |
| 696 | _fixpath (argv[0], root = alloca (MAXPATHLEN + 20)); | 696 | root = alloca (MAXPATHLEN + 20); |
| 697 | _fixpath (argv[0], root); | ||
| 697 | strlwr (root); | 698 | strlwr (root); |
| 698 | len = strlen (root); | 699 | len = strlen (root); |
| 699 | while (len > 0 && root[len] != '/' && root[len] != ':') | 700 | while (len > 0 && root[len] != '/' && root[len] != ':') |