Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 563d6077 in mainline


Ignore:
Timestamp:
2010-01-14T20:16:05Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
963462af, 99de22b
Parents:
aa53ee69
Message:

Fix off-by-one error in kconsole command matching code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/kconsole.c

    raa53ee69 r563d6077  
    543543                if (str_lcmp(hlp->name, cmdline + start,
    544544                    max(str_length(hlp->name),
    545                     str_nlength(cmdline + start, (size_t) (end - start) - 1))) == 0) {
     545                    str_nlength(cmdline + start, (size_t) (end - start)))) == 0) {
    546546                        cmd = hlp;
    547547                        break;
Note: See TracChangeset for help on using the changeset viewer.