Hat labels reserve an extra character for the arrow, which partially masked this error. When used buttons requires more characters than (1 + used hats), the buffer had insufficient space and the label was truncated.