aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/carbon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/carbon.c b/src/carbon.c
index bd3775b..285468b 100644
--- a/src/carbon.c
+++ b/src/carbon.c
@@ -27,7 +27,9 @@ carbon_event_handler(EventHandlerCallRef ref, EventRef event, void *context)
carbon->process_name = NULL;
}
- CFStringLowercase(process_name_ref, CFLocaleGetSystem());
+ // NOTE(koekeishiya): Might want to call ProcessInformationCopyDictionary instead.
+ // http://mirror.informatimago.com/next/developer.apple.com/documentation/Carbon/Reference/Process_Manager/prmref_main/function_group_1.html#//apple_ref/c/func/GetProcessInformationCopyDictionary
+ CFStringLowercase((CFMutableStringRef)process_name_ref, CFLocaleGetSystem());
carbon->process_name = copy_cfstring(process_name_ref);
CFRelease(process_name_ref);
}