4a9b372
--- zipios++-0.1.5.9+cvs.2007.04.28/zipios++/zipheadio.h.debug	2000-09-21 02:46:59.000000000 +0900
4a9b372
+++ zipios++-0.1.5.9+cvs.2007.04.28/zipios++/zipheadio.h	2018-04-10 22:34:10.191446483 +0900
4a9b372
@@ -150,6 +150,7 @@ inline void readByteSeq ( istream &is, v
4a9b372
 }
4a9b372
 
4a9b372
 inline void writeByteSeq ( ostream &os, const vector < unsigned char > &vec ) {
4a9b372
+  if (vec.size() > 0)
4a9b372
   os.rdbuf()->sputn( reinterpret_cast< const char * >( &( vec[ 0 ] ) ), vec.size() ) ;
4a9b372
 }
4a9b372