diff options
Diffstat (limited to 'lib/Handle.cc')
-rw-r--r-- | lib/Handle.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc index 6fa4e54..3d60fda 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Handle.cc,v 1.66 2003-12-26 23:51:33 pixel Exp $ */ +/* $Id: Handle.cc,v 1.67 2003-12-27 01:51:41 pixel Exp $ */ #include <stdio.h> #include <string.h> @@ -543,6 +543,8 @@ void copy(Handle * s, Handle * d, ssize_t size) { } void Handle::Flush() { + if (!CanWrite()) + return; if (h < 0) return; if (z >= 10) { |