X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f1ae4143271ae63a17e052a1a471d16e9cd8c44..c854c7d92cd804949cd5e520a65691eb2c1e050b:/src/mac/icon.cpp?ds=sidebyside diff --git a/src/mac/icon.cpp b/src/mac/icon.cpp index 4ec1f1b5e9..7f666da534 100644 --- a/src/mac/icon.cpp +++ b/src/mac/icon.cpp @@ -102,8 +102,13 @@ bool wxICONResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, lo Str255 theName ; short theId ; OSType theType ; - strcpy( (char*) theName , name ) ; - c2pstr( (char*) theName ) ; + +#if TARGET_CARBON + c2pstrcpy( (StringPtr) theName , name ) ; +#else + strcpy( (char *) theName , name ) ; + c2pstr( (char *) theName ) ; +#endif Handle resHandle = GetNamedResource( 'cicn' , theName ) ; if ( resHandle != 0L ) @@ -125,4 +130,4 @@ bool wxICONResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, lo } } return FALSE ; -} \ No newline at end of file +}