Use the template variants of the secure CRT functions to determine the buffer size