]> git.donarmstrong.com Git - mothur.git/commitdiff
working on sffinfo command.
authorwestcott <westcott>
Wed, 14 Jul 2010 16:12:53 +0000 (16:12 +0000)
committerwestcott <westcott>
Wed, 14 Jul 2010 16:12:53 +0000 (16:12 +0000)
sffinfocommand.cpp

index df01e5e11f6aacd18a4bab7a123573f113c68a1e..66f65ac9f8422eb5a8b8877000228cdabc21b487 100644 (file)
@@ -196,7 +196,7 @@ int SffInfoCommand::readCommonHeader(ifstream& in, CommonHeader*& header){
                        //read version
                        header->version = new char(4);
                        in.read(header->version, 4);
-                       string tempBuf0 = header->version;
+                       string tempBuf0 = header->version;  //this is in here because the read sometimes tacks on extra chars, not sure why?
                        if (tempBuf0.length() > 4) { tempBuf0 = tempBuf0.substr(0, 4);  strcpy(header->version, tempBuf0.c_str());  }
                        //memcpy(header->version, buffer+4, 4);
        //cout << "here " << header->version  << '\t' << in.tellg() << endl;