func: static void goodG2B() wchar_t * data ; wchar_t dataBuffer [ 100 ] ; data = dataBuffer; wmemset ( data , L 'A' , 50 - 1 data [ 50 - 1 ] = L '\0' wchar_t * dataCopy = data ; wchar_t * data = dataCopy ; wchar_t dest [ 50 ] = L "" wcsncat ( dest , data , wcslen ( data ) ); 