diff options
| author | Richard M. Stallman | 1995-07-20 18:30:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-07-20 18:30:49 +0000 |
| commit | 872e2c822b70d61a5aa3ce9a5074da829c2818b5 (patch) | |
| tree | 91687a661e5b6d966fe0c64e45f5bdf2a6e1e53d /src | |
| parent | b94f28eef7ad39b05228394cf0450f9da2c2373f (diff) | |
| download | emacs-872e2c822b70d61a5aa3ce9a5074da829c2818b5.tar.gz emacs-872e2c822b70d61a5aa3ce9a5074da829c2818b5.zip | |
(init_environment): Move alloca call out of function arg.
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] != ':') |