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
3f817c73
Commit
3f817c73
authored
Mar 21, 2003
by
Kenichi Handa
Browse files
(Fexpand_file_name): Fix previous change.
parent
f0ec1711
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
src/ChangeLog
src/ChangeLog
+4
-0
src/fileio.c
src/fileio.c
+8
-8
No files found.
src/ChangeLog
View file @
3f817c73
2003-03-21 Kenichi Handa <handa@etlken2>
* fileio.c (Fexpand_file_name): Fix previous change.
2003-03-19 Kenichi Handa <handa@etlken2>
* fileio.c (Ffile_name_directory): Reconstruct file name by
...
...
src/fileio.c
View file @
3f817c73
...
...
@@ -1289,20 +1289,20 @@ See also the function `substitute-in-file-name'. */)
if
(
IS_DIRECTORY_SEP
(
nm
[
1
]))
{
if
(
strcmp
(
nm
,
SDATA
(
name
))
!=
0
)
name
=
make_specified_string
(
nm
,
-
1
,
strlen
(
nm
),
STRING_MULTIBYTE
(
name
));
name
=
make_specified_string
(
nm
,
-
1
,
strlen
(
nm
),
STRING_MULTIBYTE
(
name
));
}
else
#endif
/* drive must be set, so this is okay */
if
(
strcmp
(
nm
-
2
,
SDATA
(
name
))
!=
0
)
{
name
=
make_specified_string
(
nm
,
-
1
,
strlen
(
nm
),
STRING_MULTIBYTE
(
name
));
SSET
(
name
,
0
,
DRIVE_LETTER
(
drive
));
SSET
(
name
,
1
,
':'
);
char
temp
[]
=
" :"
;
name
=
make_specified_string
(
nm
,
-
1
,
p
-
nm
,
STRING_MULTIBYTE
(
name
));
temp
[
0
]
=
DRIVE_LETTER
(
drive
);
name
=
concat2
(
build_string
(
temp
),
name
);
}
return
name
;
#else
/* not DOS_NT */
...
...
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