Changeset 1255 for trunk/xdotool
- Timestamp:
- 03/31/09 12:38:54 (17 months ago)
- Location:
- trunk/xdotool
- Files:
-
- 3 modified
-
CHANGELIST (modified) (1 diff)
-
debian/changelog (modified) (1 diff)
-
xdo.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xdotool/CHANGELIST
r1250 r1255 1 20090330: 2 * Fix bug where we use the wrong type in sizeof() for allocating character 3 code map. 4 * Fix tiny problem where we would try to free() an invalid pointer 5 1 6 20090126: 2 7 * Change the default behavior of 'getwindowfocus' to get the first -
trunk/xdotool/debian/changelog
r1252 r1255 1 xdotool (20090330-1) unstable; urgency=low 2 3 * New upstream release 4 5 -- Daniel Kahn Gillmor <dkg@fifthhorseman.net> Tue, 31 Mar 2009 12:34:58 -0400 6 1 7 xdotool (20090126-1) unstable; urgency=low 2 8 -
trunk/xdotool/xdo.c
r1250 r1255 1 1 /* xdo library 2 2 * 3 * $Id: xdo.c 21 58 2009-01-26 11:05:03Z jordansissel $3 * $Id: xdo.c 2172 2009-03-30 02:38:06Z jordansissel $ 4 4 * 5 5 * - getwindowfocus contributed by Lee Pumphret … … 603 603 } 604 604 605 free(keys); 605 if (keys != NULL) { 606 free(keys); 607 } 606 608 XFlush(xdo->xdpy); 607 609 return ret; … … 798 800 char *tokctx = NULL; 799 801 const char *tok = NULL; 800 char * strptr = NULL;802 char *keyseq_copy = NULL, *strptr = NULL; 801 803 int i; 802 804 KeyCode shift_keycode; … … 813 815 shift_keycode = XKeysymToKeycode(xdo->xdpy, XStringToKeysym("Shift_L")); 814 816 815 *keys = malloc(keys_size * sizeof( KeyCode));816 strptr = strdup(keyseq);817 *keys = malloc(keys_size * sizeof(charcodemap_t)); 818 keyseq_copy = strptr = strdup(keyseq); 817 819 while ((tok = strtok_r(strptr, "+", &tokctx)) != NULL) { 818 820 KeySym sym; … … 854 856 } 855 857 856 free( strptr);858 free(keyseq_copy); 857 859 858 860 return True;

