Use sizeof(fieldname) here.