func: static void goodG2B() wchar_t * dataBuffer = ( wchar_t * ) malloc ( 100 * sizeof ( wchar_t ) ) ; data = dataBuffer; myStruct . structFirst = data; CWE127_Buffer_Underread__malloc_wchar_t_ncpy_67b_goodG2BSink ( myStruct ); void CWE127_Buffer_Underread__malloc_wchar_t_ncpy_67b_goodG2BSink(CWE127_Buffer_Underread__malloc_wchar_t_ncpy_67_structType myStruct) wchar_t * data = myStruct . structFirst ; wcsncpy ( dest , data , wcslen ( dest ) ); printWLine ( dest ); void printWLine (const wchar_t * line) if ( line != NULL )  wprintf ( L "%ls\n" , line ) 