From 2b3df5f90ee2a63b4a86c0ca94f8a410740690a8 Mon Sep 17 00:00:00 2001 From: David Vazquez Date: Fri, 4 Jan 2013 00:49:22 +0000 Subject: [PATCH] read-until stops if it finds EOF --- lispstrack.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lispstrack.lisp b/lispstrack.lisp index 1599261..f6aaee0 100644 --- a/lispstrack.lisp +++ b/lispstrack.lisp @@ -508,7 +508,7 @@ (let ((string "") (ch)) (setq ch (%peek-char stream)) - (while (not (funcall func ch)) + (while (and ch (not (funcall func ch))) (setq string (concat string (string ch))) (%read-char stream) (setq ch (%peek-char stream))) -- 1.7.10.4