aboutsummaryrefslogtreecommitdiff
path: root/src/carbon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/carbon.c')
-rw-r--r--src/carbon.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/carbon.c b/src/carbon.c
index 285468b..d722104 100644
--- a/src/carbon.c
+++ b/src/carbon.c
@@ -27,10 +27,9 @@ carbon_event_handler(EventHandlerCallRef ref, EventRef event, void *context)
carbon->process_name = NULL;
}
- // 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);
+ for (char *s = carbon->process_name; *s; ++s) *s = tolower(*s);
+
CFRelease(process_name_ref);
}