Use sizeof(var) instead of sizeof(type)