diff --git a/source/arm11/atp.c b/source/arm11/atp.c index 9d0e3e4..c1c1b1b 100644 --- a/source/arm11/atp.c +++ b/source/arm11/atp.c @@ -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 ); }