From 4a3c8bb59806addab911c6c9cf8974b13cd12842 Mon Sep 17 00:00:00 2001 From: "giantpune@gmail.com" Date: Thu, 9 Dec 2010 11:31:24 +0000 Subject: [PATCH] forgot this --- nandExtract/nandbin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nandExtract/nandbin.cpp b/nandExtract/nandbin.cpp index 3dacc98..519c739 100755 --- a/nandExtract/nandbin.cpp +++ b/nandExtract/nandbin.cpp @@ -22,7 +22,8 @@ NandBin::~NandBin() bool NandBin::SetPath( const QString &path ) { - nandPath = path; + nandPath = path;//TODO: dont need both these variables. definitely dont need to set the global one here + nandFile = path; if( f.isOpen() ) f.close(); @@ -252,7 +253,7 @@ bool NandBin::GetKey( int type ) emit SendError( tr( "Error getting path of keys.bin" ) ); return false; } - keyPath.resize( sl ); + keyPath.resize( sl + 1 ); keyPath += "keys.bin"; key = ReadKeyfile( keyPath );