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
72b21817
Commit
72b21817
authored
Oct 06, 1992
by
Richard M. Stallman
Browse files
(directory_file_name): Don't clobber the envvar
when handling top-level rooted dir.
parent
eabf7f96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/fileio.c
src/fileio.c
+5
-3
No files found.
src/fileio.c
View file @
72b21817
...
...
@@ -468,9 +468,11 @@ directory_file_name (src, dst)
&& (ptr[rlen] == ']' || ptr[rlen] == '>')
&& ptr[rlen - 1] == '.')
{
ptr
[
rlen
-
1
]
=
']'
;
ptr
[
rlen
]
=
'\0'
;
return
directory_file_name
(
ptr
,
dst
);
char * buf = (char *) alloca (strlen (ptr) + 1);
strcpy (buf, ptr);
buf[rlen - 1] = ']';
buf[rlen] = '\0';
return directory_file_name (buf, dst);
}
else
dst[slen - 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