- T((T_CALLED("keybound(%d,%d)"), code, count));
- if (SP != 0) {
- result = _nc_expand_try(SP->_keytry, code, &count, 0);
+ T((T_CALLED("keybound(%p, %d,%d)"), (void *) SP_PARM, code, count));
+ if (SP_PARM != 0 && code >= 0) {
+ result = _nc_expand_try(SP_PARM->_keytry,
+ (unsigned) code,
+ &count,
+ (size_t) 0);