summaryrefslogtreecommitdiff
path: root/lisp/dired-aux.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/dired-aux.el')
-rw-r--r--lisp/dired-aux.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index dd266ce8ae1..ea5aca6b898 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -517,7 +517,7 @@ and use this command with a prefix argument (the value does not matter)."
(string-match "\\.z$" file))
(if (not (dired-check-process (concat "Uncompressing " file)
"gunzip" file))
- (substring file 0 -3)))
+ (substring file 0 -2)))
(t
;;; Try gzip; if we don't have that, use compress.
(condition-case nil