From da61a64091aa869699b8d1054263bc2c57546a99 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 16 Aug 1996 17:21:31 +0000 Subject: [PATCH] (ange-ftp-process-filter): Discard nulls. --- lisp/ange-ftp.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el index 6174ce70c9c..434eaf046cb 100644 --- a/lisp/ange-ftp.el +++ b/lisp/ange-ftp.el @@ -1492,6 +1492,10 @@ good, skip, fatal, or unknown." (let ((buffer (process-buffer proc)) (old-buffer (current-buffer))) + ;; Eliminate nulls. + (while (string-match "\000+" str) + (setq str (replace-match "" nil nil str))) + ;; see if the buffer is still around... it could have been deleted. (if (buffer-name buffer) (unwind-protect -- 2.39.2