summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXFont.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-09-07 20:44:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-09-07 20:44:08 (GMT)
commitaf160d39cd16bfbe6ff0ec0e0bca4b351142f2c5 (patch)
treeff2a9400e67eb29b0b4af3103a1be1b10839277d /macosx/tkMacOSXFont.c
parentea9ae2f75bd7c14f819ef221d946ea79efa403bb (diff)
downloadtk-af160d39cd16bfbe6ff0ec0e0bca4b351142f2c5.zip
tk-af160d39cd16bfbe6ff0ec0e0bca4b351142f2c5.tar.gz
tk-af160d39cd16bfbe6ff0ec0e0bca4b351142f2c5.tar.bz2
Fix [e17b6f008], and the same in a lot of other potential problematic places
Diffstat (limited to 'macosx/tkMacOSXFont.c')
-rw-r--r--macosx/tkMacOSXFont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c
index d9c1c01..3f247cc 100644
--- a/macosx/tkMacOSXFont.c
+++ b/macosx/tkMacOSXFont.c
@@ -244,7 +244,7 @@ FindNSFont(
NSString *family;
if (familyName) {
- family = [[[NSString alloc] initWithUTF8String:familyName] autorelease];
+ family = [[[TKNSString alloc] initWithTclUtfBytes:familyName length:-1] autorelease];
} else {
family = [defaultFont familyName];
}