mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-08 06:44:12 +08:00
刚加上的代码内存越界了
This commit is contained in:
parent
1752701323
commit
a241866a8d
@ -190,8 +190,8 @@ static void set_paging( int top, int len )
|
||||
|
||||
unsigned total = (len+CONTAINER_MAX_LINES-1) / CONTAINER_MAX_LINES;
|
||||
unsigned current = top / CONTAINER_MAX_LINES;
|
||||
char buf[PAGING_BUFSIZE];
|
||||
ee_snprintf( buf, PAGING_BUFSIZE-1, "页码:%d/%d", top, len );
|
||||
char buf[PAGING_BUFSIZE+1];
|
||||
ee_snprintf( buf, PAGING_BUFSIZE, "页码:%d/%d", top, len );
|
||||
buf[PAGING_BUFSIZE] = '\0';
|
||||
atp_tips( buf, NULL );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user