Fri 28 Jul 2006 07:23:30 PM UTC, original submission:
When trying to launch cnee with:
cnee --record -devra 16,17,21 -v
I received a SIGSEGV. Using a debugger, I found a problem in xnee_key2string. "id" is assigned a -1 from the call to xnee_key2id which inturns causes the xnee_verbose call to fail with options[id].
I would suggest moving the xnee_verbose call until after the IF call:
const char *
xnee_key2string(xnee_data *xd,
xnee_option_t *options,
int key)
{
int id ;
id = xnee_key2id(xd, options, key);
if ( id == XNEE_OPTION_NOT_FOUND )
{
return XNEE_EMPTY_STRING;
}
xnee_verbose((xd, "Looking for %d ===> %d '%s'\n",
key, id, options[id].option));
return options[id].option;
}
|