From db1f56c8449d2ea3d158753fe37bac5a750a2566 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 29 Nov 2015 14:18:52 -0800 Subject: 2611 --- html/092persist.cc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html/092persist.cc.html') diff --git a/html/092persist.cc.html b/html/092persist.cc.html index cce4913f..c2056b8c 100644 --- a/html/092persist.cc.html +++ b/html/092persist.cc.html @@ -88,7 +88,7 @@ string slurp(const string& filename(!fin) return result.str(); // don't bother checking errno const int N = 1024; char buf[N]; - while (!fin.eof()) { + while (has_data(fin)) { bzero(buf, N); fin.read(buf, N-1); // leave at least one null result << buf; -- cgit 1.4.1-2-gfad0