From f54925b51425c714502e90dd40b621a80fe1f583 Mon Sep 17 00:00:00 2001
From: westcott <westcott>
Date: Wed, 14 Jul 2010 16:12:53 +0000
Subject: [PATCH] working on sffinfo command.

---
 sffinfocommand.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;	
-- 
2.39.5