X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b781a6729859abc77e6ca5b1f81cbaad974a78f..3417f6618c41a6b8a7adc29ad5a12ca8c0dad248:/src/mac/notebmac.cpp diff --git a/src/mac/notebmac.cpp b/src/mac/notebmac.cpp index d2e9660896..ca975252fe 100644 --- a/src/mac/notebmac.cpp +++ b/src/mac/notebmac.cpp @@ -260,8 +260,12 @@ bool wxNotebook::InsertPage(int nPage, tie.version = 0 ; tie.iconSuiteID = 0 ; - strcpy( (char*) tie.name , strText ) ; - c2pstr( (char*) tie.name ) ; +#if TARGET_CARBON + c2pstrcpy( (StringPtr) tie.name , strText ) ; +#else + strcpy( (char *) tie.name , strText ) ; + c2pstr( (char *) tie.name ) ; +#endif SetControlData( m_macControl, nPage + 1, kControlTabInfoTag , sizeof( ControlTabInfoRec) , (char*) &tie ) ; SetControlData( m_macControl, m_nSelection + 1, kControlTabEnabledFlagTag, sizeof( Boolean ), (Ptr)&enabled );