From a241866a8d0d3854d5cef466d3d5f1954207f677 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Sun, 16 Oct 2022 10:11:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9A=E5=8A=A0=E4=B8=8A=E7=9A=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=86=85=E5=AD=98=E8=B6=8A=E7=95=8C=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/atp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); }