char* pszBuffer = NULL, * pszNewBuffer = NULL;
    pszBuffer = (char*)malloc(24);
    **sprintf_s(pszBuffer, sizeof(pszBuffer), "%s", "TestString");**
    printf("[%p] %u %s\n",
        pszBuffer, _msize(pszBuffer), pszBuffer);
In this code, "buffer is too small". what problem is this?
When I changed from "sizeof(pszBuffer)" to "24(just number size)", it can run. so I think, sprintf_S function can not use sizeof. Am I right?
 
    