diff options
author | pixel <pixel> | 2003-07-13 02:12:38 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-07-13 02:12:38 +0000 |
commit | 8c4ce72f66f5d2b8b01689d1282ae3491b714130 (patch) | |
tree | 9d27dc3daed88ee216e05243f1202c01ada3110d /lib | |
parent | 2a1525eb8cef13000fc10126f770541b2115ff89 (diff) |
Small fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Handle.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc index 69f6111..d6fa0fb 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -312,7 +312,7 @@ void Handle::SetZ(int az) throw (GeneralException) { } } } else if (az) { - char format[4]; + char format[5]; int index = 0; if (CanRead()) { format[index++] = 'r'; @@ -321,6 +321,7 @@ void Handle::SetZ(int az) throw (GeneralException) { format[index++] = 'w'; } format[index++] = (char) (az + '0'); + format[index++] = 'b'; format[index] = 0; #ifdef FULLDEBUG printm(M_INFO, String(_("Performing gzdopen on handle ")) + h + _(" with mode \"") + format + "\"\n"); |