X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=sffinfocommand.cpp;h=66f65ac9f8422eb5a8b8877000228cdabc21b487;hb=f54925b51425c714502e90dd40b621a80fe1f583;hp=df01e5e11f6aacd18a4bab7a123573f113c68a1e;hpb=df1ea5f2151b9334c471bf4310f78f51bba098be;p=mothur.git diff --git a/sffinfocommand.cpp b/sffinfocommand.cpp index df01e5e..66f65ac 100644 --- a/sffinfocommand.cpp +++ b/sffinfocommand.cpp @@ -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;