From 5630b8067debf046c748ebcb5606589d32d9bc72 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 8 Oct 2008 09:37:57 -0700 Subject: Obviously, buffers need to be emptied at each loop... --- lib/ReadJob.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ReadJob.cc b/lib/ReadJob.cc index 33f78dd..d444008 100644 --- a/lib/ReadJob.cc +++ b/lib/ReadJob.cc @@ -56,6 +56,7 @@ int ReadJob::Do() throw (GeneralException) { case 1: try { *d << buff << "\n"; + buff = ""; } catch (IOAgain e) { /***TODO*** Potential bug here: if the write was partial, we'd need to restart at a later position. */ -- cgit v1.2.3