mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(convert-standard-filename): Do length check on name
before aref.
This commit is contained in:
parent
064866e7f5
commit
82d5a7b2a6
1 changed files with 2 additions and 1 deletions
|
|
@ -257,7 +257,8 @@ with a definition that really does change some file names."
|
|||
(let ((name (copy-sequence filename))
|
||||
(start 0))
|
||||
;; leave ':' if part of drive specifier
|
||||
(if (eq (aref name 1) ?:)
|
||||
(if (and (> (length name) 1)
|
||||
(eq (aref name 1) ?:))
|
||||
(setq start 2))
|
||||
;; destructively replace invalid filename characters with !
|
||||
(while (string-match "[?*:<>|\"\000-\037]" name start)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue