From bb17df1972785a845cd49a74af3ee24ae38a1b57 Mon Sep 17 00:00:00 2001 From: fumiama Date: Wed, 8 Dec 2021 22:33:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E6=AD=A3del?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index 1071087..467c73a 100644 --- a/server.c +++ b/server.c @@ -236,7 +236,7 @@ static int s4_del(THREADTIMER *timer) { while(has_next(fp, ch)) { SIMPLE_PB* spb = get_pb(fp); DICT* d = (DICT*)spb->target; - if(!strcmp(timer->data, d->key)) { + if(!memcmp(timer->data, d->key, timer->numbytes)) { uint32_t next = ftell(fp); uint32_t this = next - spb->real_len; fseek(fp, 0, SEEK_END);