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; } }