From 34a82f430dc67b74f99a86d8d9279316eb890be6 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Wed, 8 Mar 2023 15:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E6=9C=89=E4=B8=AA=E5=9C=B0=E6=96=B9?= =?UTF-8?q?=E8=A6=81=E6=94=B9=E7=9A=84=EF=BC=8C=E7=BB=A7=E7=BB=AD=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/cheat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/arm11/cheat.c b/source/arm11/cheat.c index 7a4a327..c435c40 100644 --- a/source/arm11/cheat.c +++ b/source/arm11/cheat.c @@ -317,7 +317,7 @@ static CodeLocation rom_fit_newsize( CodeLocation rom, int realend, int totalsiz CodeLocation found=NULL, current=NULL; int szfound=0, szcurrent=0; int reallen = realend / sizeof(instruction_t); - for( int i=0; i < realend; ++i ) + for( int i=0; i < reallen; ++i ) { if( rom[i] == 0 ) {