Commit 872e2c82 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(init_environment): Move alloca call out of function arg.

parent b94f28ee
......@@ -693,7 +693,8 @@ init_environment (argc, argv, skip_args)
/* Find our root from argv[0]. Assuming argv[0] is, say,
"c:/emacs/bin/emacs.exe" our root will be "c:/emacs". */
_fixpath (argv[0], root = alloca (MAXPATHLEN + 20));
root = alloca (MAXPATHLEN + 20);
_fixpath (argv[0], root);
strlwr (root);
len = strlen (root);
while (len > 0 && root[len] != '/' && root[len] != ':')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment