Change sizeof(struct_type) to sizeof(variable).