Please use `sizeof(*md)`. Dito in the *memset(3)* below.