summaryrefslogtreecommitdiff
path: root/lisp/url/url-file.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/url/url-file.el')
-rw-r--r--lisp/url/url-file.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/url/url-file.el b/lisp/url/url-file.el
index 1c7c20e7c83..02542ccbccc 100644
--- a/lisp/url/url-file.el
+++ b/lisp/url/url-file.el
@@ -70,7 +70,7 @@ to them."
buff func
func args
args efs))
- (let ((size (nth 7 (file-attributes name))))
+ (let ((size (file-attribute-size (file-attributes name))))
(with-current-buffer buff
(goto-char (point-max))
(if (/= -1 size)