Import Oort Gnus v0.18.
[elisp/gnus.git-] / lisp / pgg.el
index 407e5c1..f69298c 100644 (file)
@@ -179,7 +179,7 @@ the region."
   (interactive "r")
   (let* ((buf (current-buffer))
         (packet (cdr (assq 1 (with-temp-buffer
-                               (insert-buffer buf)
+                               (insert-buffer-substring buf)
                                (pgg-decode-armor-region
                                 (point-min) (point-max))))))
         (key (cdr (assq 'key-identifier packet)))