From ece132fd5d88b884159d2de9c2af423ff19311f4 Mon Sep 17 00:00:00 2001 From: Etienne Samson Date: Wed, 28 Aug 2013 23:06:15 +0200 Subject: [PATCH] Correct fix for that one. --- Classes/NDKeyboardLayout.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/NDKeyboardLayout.m b/Classes/NDKeyboardLayout.m index 152b6ec..8cd69e9 100644 --- a/Classes/NDKeyboardLayout.m +++ b/Classes/NDKeyboardLayout.m @@ -453,7 +453,7 @@ - (NSString*)stringForKeyCode:(UInt16)aKeyCode modifierFlags:(UInt32)aModifierFl memset( theCharacter, 0, sizeof(theCharacter) ); NSUInteger thePos = _characterForModifierFlags(theCharacter,aModifierFlags); memcpy( theCharacter+thePos, theEntry->description, sizeof(theEntry->description) ); - theResult = [NSString stringWithFormat:@"%S", (const unsigned short *)theCharacter]; + theResult = [NSString stringWithCharacters:theCharacter length:thePos+1]; } else {