func: void CWE134_Uncontrolled_Format_String__wchar_t_environment_snprintf_67_bad() wchar_t * data ; wchar_t dataBuffer [ 100 ] = L "" data = dataBuffer; size_t dataLen = wcslen ( data ) ; wchar_t * environment = GETENV ( ENV_VARIABLE ) ; if ( environment != NULL )  wcsncat ( data + dataLen , environment , 100 - dataLen - 1 ); myStruct . structFirst = data; CWE134_Uncontrolled_Format_String__wchar_t_environment_snprintf_67b_badSink ( myStruct ); void CWE134_Uncontrolled_Format_String__wchar_t_environment_snprintf_67b_badSink(CWE134_Uncontrolled_Format_String__wchar_t_environment_snprintf_67_structType myStruct) wchar_t * data = myStruct . structFirst ; SNPRINTF ( dest , 100 - 1 , data ); 