Changeset 1255 for trunk/xdotool

Show
Ignore:
Timestamp:
03/31/09 12:38:54 (17 months ago)
Author:
dkg
Message:

xdotool: upgrading to 20090330

Location:
trunk/xdotool
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/xdotool/CHANGELIST

    r1250 r1255  
     120090330: 
     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 
    1620090126: 
    27  * Change the default behavior of 'getwindowfocus' to get the first 
  • trunk/xdotool/debian/changelog

    r1252 r1255  
     1xdotool (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 
    17xdotool (20090126-1) unstable; urgency=low 
    28 
  • trunk/xdotool/xdo.c

    r1250 r1255  
    11/* xdo library 
    22 * 
    3  * $Id: xdo.c 2158 2009-01-26 11:05:03Z jordansissel $ 
     3 * $Id: xdo.c 2172 2009-03-30 02:38:06Z jordansissel $ 
    44 * 
    55 * - getwindowfocus contributed by Lee Pumphret 
     
    603603  } 
    604604 
    605   free(keys); 
     605  if (keys != NULL) { 
     606    free(keys); 
     607  } 
    606608  XFlush(xdo->xdpy); 
    607609  return ret; 
     
    798800  char *tokctx = NULL; 
    799801  const char *tok = NULL; 
    800   char *strptr = NULL; 
     802  char *keyseq_copy = NULL, *strptr = NULL; 
    801803  int i; 
    802804  KeyCode shift_keycode; 
     
    813815  shift_keycode = XKeysymToKeycode(xdo->xdpy, XStringToKeysym("Shift_L")); 
    814816 
    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); 
    817819  while ((tok = strtok_r(strptr, "+", &tokctx)) != NULL) { 
    818820    KeySym sym; 
     
    854856  } 
    855857 
    856   free(strptr); 
     858  free(keyseq_copy); 
    857859 
    858860  return True;