summaryrefslogtreecommitdiff
path: root/lib/CopyJob.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CopyJob.cc')
-rw-r--r--lib/CopyJob.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CopyJob.cc b/lib/CopyJob.cc
index 1e151c3..877b113 100644
--- a/lib/CopyJob.cc
+++ b/lib/CopyJob.cc
@@ -26,6 +26,9 @@ int CopyJob::Do() throw (GeneralException) {
tr = siz >= 0 ? siz - cursiz : COPY_BUFSIZ;
try {
r = s->read(buffer, MIN(COPY_BUFSIZ, tr));
+ cerr << "CopyJob: read " << r << " bytes: " << endl;
+ buffer[r] = 0;
+ cerr << buffer << endl;
}
catch (IOAgain e) {
WaitFor(s, W4_READING);