another CHAR_T buffer size calculation bug fix