]> WPIA git - cassiopeia.git/commitdiff
fix: the record reading code
authorFelix Dörre <felix@dogcraft.de>
Sun, 2 Aug 2015 22:55:56 +0000 (00:55 +0200)
committerFelix Dörre <felix@dogcraft.de>
Sun, 2 Aug 2015 22:55:56 +0000 (00:55 +0200)
src/io/record.cpp

index c8fda58c98dd942c6e7d41b11efb97cf13c28b26..5f51ec1023f01f83aa7c5c76bd68b49b291d44f8 100644 (file)
@@ -63,7 +63,6 @@ std::string parseCommand( RecordHeader& head, const std::string& input, std::sha
     bool error = false;
 
     std::string str( std::max( dlen, RECORD_HEADER_SIZE ), 0 );
-    str.append( dlen, '\0' );
 
     for( int i = 0; i < dlen; i++ ) {
         int32_t digit;