diff options
Diffstat (limited to 'lib/Handle.cc')
-rw-r--r-- | lib/Handle.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc index c0b3d94..efe2e15 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -617,14 +617,12 @@ void copyone(Handle * s, Handle * d, ssize_t size) { #define BSIZE 20480 void copy(Handle * s, Handle * d, ssize_t size) { - static unsigned char b[BSIZE]; + unsigned char b[BSIZE]; long r; if (size < 0) size = s->GetSize(); - LOCK; - while (size) { if ((size > BSIZE) || (size < 0)) { r = s->read(b, BSIZE); @@ -640,8 +638,6 @@ void copy(Handle * s, Handle * d, ssize_t size) { if (size > 0) size -= r; } - - UNLOCK; } void Handle::Flush() { |