Rev 609 | Rev 623 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 609 | Rev 611 | ||
---|---|---|---|
Line 486... | Line 486... | ||
486 | cmd_info_t *hlp; |
486 | cmd_info_t *hlp; |
487 | 487 | ||
488 | hlp = list_get_instance(cur, cmd_info_t, link); |
488 | hlp = list_get_instance(cur, cmd_info_t, link); |
489 | spinlock_lock(&hlp->lock); |
489 | spinlock_lock(&hlp->lock); |
490 | 490 | ||
491 | if (strncmp(hlp->name, &cmdline[start], (end - start) + 1) == 0) { |
491 | if (strncmp(hlp->name, &cmdline[start], strlen(hlp->name)) == 0) { |
492 | cmd = hlp; |
492 | cmd = hlp; |
493 | break; |
493 | break; |
494 | } |
494 | } |
495 | 495 | ||
496 | spinlock_unlock(&hlp->lock); |
496 | spinlock_unlock(&hlp->lock); |