about summary refs log tree commit diff stats
path: root/html/092persist.cc.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/092persist.cc.html')
-rw-r--r--html/092persist.cc.html2
1 files changed, 1 insertions, 1 deletions
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<span class="Delimiter">(</span>const string&amp; filename<span clas
   if <span class="Delimiter">(</span>!fin<span class="Delimiter">)</span> <span class="Identifier">return</span> result<span class="Delimiter">.</span>str<span class="Delimiter">();</span>  <span class="Comment">// don't bother checking errno</span>
   const int N = <span class="Constant">1024</span><span class="Delimiter">;</span>
   char buf[N]<span class="Delimiter">;</span>
-  while <span class="Delimiter">(</span>!fin<span class="Delimiter">.</span>eof<span class="Delimiter">())</span> <span class="Delimiter">{</span>
+  while <span class="Delimiter">(</span>has_data<span class="Delimiter">(</span>fin<span class="Delimiter">))</span> <span class="Delimiter">{</span>
     bzero<span class="Delimiter">(</span>buf<span class="Delimiter">,</span> N<span class="Delimiter">);</span>
     fin<span class="Delimiter">.</span>read<span class="Delimiter">(</span>buf<span class="Delimiter">,</span> N-<span class="Constant">1</span><span class="Delimiter">);</span>  <span class="Comment">// leave at least one null</span>
     result &lt;&lt; buf<span class="Delimiter">;</span>