From 6f40801c55dae3aa8044bb059e2700fe12b83930 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 9 Aug 2009 22:59:50 +0000 Subject: [PATCH] fix file signing --- stepmania/src/CryptManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/CryptManager.cpp b/stepmania/src/CryptManager.cpp index b5a9fb0e2e..797a1c7d3b 100644 --- a/stepmania/src/CryptManager.cpp +++ b/stepmania/src/CryptManager.cpp @@ -23,6 +23,7 @@ static bool HashFile( RageFileBasic &f, unsigned char buf_hash[20], int iHash ) RString s; while( !f.AtEOF() ) { + s.erase(); if( f.Read(s, 1024*4) == -1 ) { LOG->Warn( "Error reading %s: %s", f.GetDisplayPath().c_str(), f.GetError().c_str() );