diff dep/animia/src/util/osx.cc @ 194:8548dc425697

sys/osx: remove all objective-c++ stuff mmmm :)
author Paper <mrpapersonic@gmail.com>
date Thu, 07 Dec 2023 03:17:05 -0500
parents 2d5823df870f
children a7d0d543b334
line wrap: on
line diff
--- a/dep/animia/src/util/osx.cc	Thu Dec 07 01:56:39 2023 -0500
+++ b/dep/animia/src/util/osx.cc	Thu Dec 07 03:17:05 2023 -0500
@@ -99,7 +99,7 @@
 		return false;
 
 	result.resize(CFStringGetMaximumSizeForEncoding(CFStringGetLength(string), kCFStringEncodingUTF8) + 1);
-	if (!CFStringGetCString(string, &result.front(), result.length(), result.length()))
+	if (!CFStringGetCString(string, &result.front(), result.length(), kCFStringEncodingUTF8))
 		return false;
 
 	return true;