mirror of
https://github.com/bspeice/libcvautomation
synced 2024-12-04 13:58:11 -05:00
Fix the key_string function not handling spaces correctly
This commit is contained in:
parent
d01fd74dc3
commit
24b0acd106
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user