diff options
| -rw-r--r-- | lisp/ange-ftp.el | 4 |
1 files changed, 4 insertions, 0 deletions
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." | |||
| 1492 | (let ((buffer (process-buffer proc)) | 1492 | (let ((buffer (process-buffer proc)) |
| 1493 | (old-buffer (current-buffer))) | 1493 | (old-buffer (current-buffer))) |
| 1494 | 1494 | ||
| 1495 | ;; Eliminate nulls. | ||
| 1496 | (while (string-match "\000+" str) | ||
| 1497 | (setq str (replace-match "" nil nil str))) | ||
| 1498 | |||
| 1495 | ;; see if the buffer is still around... it could have been deleted. | 1499 | ;; see if the buffer is still around... it could have been deleted. |
| 1496 | (if (buffer-name buffer) | 1500 | (if (buffer-name buffer) |
| 1497 | (unwind-protect | 1501 | (unwind-protect |