]> WPIA git - cassiopeia.git/commitdiff
fix: Ambiguity when compiling
authorBenny Baumann <BenBE@geshi.org>
Sat, 6 Jun 2015 14:45:40 +0000 (16:45 +0200)
committerBenny Baumann <BenBE@geshi.org>
Sat, 6 Jun 2015 14:45:40 +0000 (16:45 +0200)
src/io/record.cpp

index bd0cc1b8d1e965636575c4c122244bd5f50a076b..908f495e6d0383f4a580f199e5506d23fa853f8b 100644 (file)
@@ -62,7 +62,7 @@ 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( 0, dlen );
+    str.append( dlen, '\0' );
 
     for( int i = 0; i < dlen; i++ ) {
         int32_t digit;