This commit is contained in:
jl777
2019-02-16 08:16:18 -11:00
parent 0871a2be6a
commit 0ddddd52f0

View File

@@ -294,11 +294,13 @@ int32_t rogue_replay(uint64_t seed,int32_t sleeptime)
while ( 1 ) while ( 1 )
{ {
roguefname(fname,seed,counter); roguefname(fname,seed,counter);
printf("check (%s)\n",fname);
if ( (fp= fopen(fname,"rb")) == 0 ) if ( (fp= fopen(fname,"rb")) == 0 )
break; break;
if ( (fsize= get_filesize(fp)) <= 0 ) if ( (fsize= get_filesize(fp)) <= 0 )
{ {
fclose(fp); fclose(fp);
printf("fsize.%ld\n",fsize);
break; break;
} }
if ( (keystrokes= (char *)realloc(keystrokes,num+fsize)) == 0 ) if ( (keystrokes= (char *)realloc(keystrokes,num+fsize)) == 0 )