From 3aa3ecad26e2beeb2da177b37d021c5e9cfc01bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 2 Mar 2022 18:05:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=98=BE=E7=A4=BA=E9=95=BF?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmoe.c b/cmoe.c index 32e07cd..f740e30 100644 --- a/cmoe.c +++ b/cmoe.c @@ -118,7 +118,7 @@ static void return_count(char* name, char* theme) { sprintf(cntstrbuf, "%010u", d->count); free(spb); char* cntstr; - for(cntstr = (char*)cntstrbuf+9; cntstr > (char*)cntstrbuf; cntstr--) if(*cntstr == '0') break; + for(cntstr = (char*)cntstrbuf; cntstr < (char*)cntstrbuf+10; cntstr++) if(*cntstr != '0') break; if(cntstr - (char*)cntstrbuf > 2) cntstr -= 2; // 保留 3 位 0 else cntstr = cntstrbuf; // 保留所有 0 int isbig = 0;