From aa5c71f839c19f2712ddb8928694d6adcf11aae3 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 19 Apr 2021 18:25:11 +0000 Subject: [PATCH] Fix silly cvar-related crash. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5819 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/cvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/cvar.c b/engine/common/cvar.c index 30009f158..06df520a9 100644 --- a/engine/common/cvar.c +++ b/engine/common/cvar.c @@ -70,7 +70,7 @@ void AHash_RemoveDataInsensitive(ahashtable_t *table, const char *name, void *da b->numentries--; //shift everything down. if (b->numentries > i) - memmove(&b->entry[i], &b->entry[i+1], b->numentries-1); + memmove(&b->entry[i], &b->entry[i+1], sizeof(*b->entry)*(b->numentries-i)); break; } }