Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-x11.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: guy@xxxxxxxxxxxx (Guy Harris)
Date: Tue, 23 Mar 2004 12:03:29 -0600 (CST)
guy         2004/03/23 12:03:29 CST

  Modified files:
    .                    packet-x11.c 
  Log:
  Handle the case where the keycodemap entry for one of the keycodes
  processed in the first loop in "keycode2keysymString()" is null.  I
  don't know whether the right thing to do is to give up (as we're doing
  now) or to not check that map.
  
  In that routine, we set "syms" to "keycodemap[keycode]", and give up if
  it's null; use "syms" in that routine instead of "keycodemap[keycode]",
  so we know that those places don't have to worry about
  "keycodemap[keycode]" being null.
  
  Fix up indentation.
  
  Revision  Changes    Path
  1.57      +37 -35    ethereal/packet-x11.c