Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
eabf01d4
Commit
eabf01d4
authored
Apr 29, 1993
by
Richard M. Stallman
Browse files
(Fexpand_file_name): Undo last change--too risky for now.
parent
d9bcdb34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/fileio.c
src/fileio.c
+4
-1
No files found.
src/fileio.c
View file @
eabf01d4
...
...
@@ -847,7 +847,10 @@ See also the function `substitute-in-file-name'.")
{
/* Get rid of any slash at the end of newdir. */
int length = strlen (newdir);
if
(
length
>
1
&&
newdir
[
length
-
1
]
==
'/'
)
/* Adding `length > 1 &&' makes ~ expand into / when homedir
is the root dir. People disagree about whether that is right.
Anyway, we can't take the risk of this change now. */
if (newdir[length - 1] == '/')
{
unsigned char *temp = (unsigned char *) alloca (length);
bcopy (newdir, temp, length - 1);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment