diff options
| -rw-r--r-- | lisp/dos-fns.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/dos-fns.el b/lisp/dos-fns.el index 50e32863602..5efb8a19f56 100644 --- a/lisp/dos-fns.el +++ b/lisp/dos-fns.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; dos-fns.el --- MS-Dos specific functions. | 1 | ;;; dos-fns.el --- MS-Dos specific functions. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1991, 1993 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1991, 1993, 1995 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Maintainer: Morten Welinder (terra@diku.dk) | 5 | ;; Maintainer: Morten Welinder (terra@diku.dk) |
| 6 | ;; Keywords: internal | 6 | ;; Keywords: internal |
| @@ -71,7 +71,7 @@ with a definition that really does change some file names." | |||
| 71 | (concat (substring string 0 8) | 71 | (concat (substring string 0 8) |
| 72 | "." | 72 | "." |
| 73 | (substring string 8)))) | 73 | (substring string 8)))) |
| 74 | (setq firstdot (string-match "\\." string)) | 74 | (setq firstdot (or (string-match "\\." string) (1- (length string)))) |
| 75 | ;; Truncate to 3 chars after the first period. | 75 | ;; Truncate to 3 chars after the first period. |
| 76 | (if (> (length string) (+ firstdot 4)) | 76 | (if (> (length string) (+ firstdot 4)) |
| 77 | (setq string (substring string 0 (+ firstdot 4)))) | 77 | (setq string (substring string 0 (+ firstdot 4)))) |