GetDlgItemText should always try to NULL terminate the string.