Fix the key_string function not handling spaces correctly

This commit is contained in:
Bradlee Speice 2012-08-03 12:36:57 -04:00
parent 733b05fd7f
commit 3489bbbdf2

View File

@ -1024,7 +1024,7 @@ cvaPoint xte_commandString ( Display *displayLocation, char *commandString, int
{
char *keyString;
keyString = malloc(COMMAND_STR_LEN * sizeof(char));
if (sscanf( s_commandString, "keystring %s", keyString ) == 1)
if (sscanf( s_commandString, "keystring %[^\t\n]", keyString ) == 1)
xte_clickKeyStr( displayLocation, keyString );
free(keyString);