Skip to content

Commit

Permalink
Merge pull request octalmage#575 from bk138/master
Browse files Browse the repository at this point in the history
src/keycode: fix buffer overflow
  • Loading branch information
oktapodia authored Apr 22, 2020
2 parents 603de61 + 274d03b commit 56c2e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keycode.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ MMKeyCode keyCodeForChar(const char c)
/* OS X does not appear to have a built-in function for this, so instead we
* have to write our own. */
static CFMutableDictionaryRef charToCodeDict = NULL;
CGKeyCode code;
size_t code;
UniChar character = c;
CFStringRef charStr = NULL;

Expand Down

0 comments on commit 56c2e03

Please sign in to comment.