aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DomeKey/HeadphoneKey.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/DomeKey/HeadphoneKey.m b/DomeKey/HeadphoneKey.m
index e955128..1d5811b 100644
--- a/DomeKey/HeadphoneKey.m
+++ b/DomeKey/HeadphoneKey.m
@@ -77,7 +77,8 @@
const CKeyActionResult *result = c_run_key_action(trigger, count);
if (*result->kind == MapKind_Map) {
- for (int i = 0; i < strlen(result->action); i++) {
+ size_t length = strlen(result->action);
+ for (size_t i = 0; i < length; i++) {
[KeyboardSimulator simpleKeyPressWithKey:result->action[i]];
}
}