From 7dbd8b0e85795d260d7a4a7a4aa3e11c637a6217 Mon Sep 17 00:00:00 2001 From: fumiama Date: Wed, 2 Mar 2022 17:23:53 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmoe.c b/cmoe.c index 54d93f0..18f51cc 100644 --- a/cmoe.c +++ b/cmoe.c @@ -146,9 +146,9 @@ static void return_count(char* name, char* theme) { } headers(get_content_len(isbig, len_type, cntstr+cntstrstart), "image/svg+xml"); write(1, head, sizeof(svg_small)-1); - for(int i = cntstrstart; i < 10; i++) { + for(int i = 0; i < 10-cntstrstart; i++) { printf(img_slot_front, w * i, w, h); - int n = cntstr[i] - '0'; + int n = cntstr[cntstrstart+i] - '0'; fwrite(theme_type[n], len_type[n], 1, stdout); puts(img_slot_rear); }