Fix busted FileCopy()
authorinfamouspat <itgpmc@gmail.com>
Tue, 3 Apr 2012 07:22:01 +0000 (00:22 -0700)
committerinfamouspat <itgpmc@gmail.com>
Tue, 3 Apr 2012 07:22:01 +0000 (00:22 -0700)
src/RageUtil.cpp

index b6a963d..164f84e 100755 (executable)
@@ -1846,6 +1846,7 @@ bool FileCopy( RageFileBasic &in, RageFileBasic &out, CString &sError, bool *bRe
 
        while( bContinue )
        {
+               data.clear();
                if( in.Read(data, 1024*32) == -1 )
                {
                        sError = ssprintf( "read error: %s", in.GetError().c_str() );