Merge branch 'remove-extra-space' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2020-10-26 15:03:25 +05:30
commit c605fd9783
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2446,7 +2446,7 @@ START_ALLOW_CASE_RANGE
END_ALLOW_CASE_RANGE
}
if (utf_16_key != 0) {
strncpy(cocoa_key, [[NSString stringWithCharacters:&utf_16_key length:1] UTF8String], key_sz - 1);
strncpy(cocoa_key, [[NSString stringWithCharacters:&utf_16_key length:1] UTF8String], key_sz - 1);
} else {
unsigned str_pos = 0;
for (unsigned i = 0; i < 4 && str_pos < key_sz - 1; i++) {