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

Ignore:
Timestamp:
2016-03-08T15:33:25Z (5 years ago)
Author:
Aurelio Colosimo <aurelio@…>
Branches:
master
Children:
d4d8255
Parents:
3266412
Message:

cmdtab_compl: fix 'if' condition while searching for maximum matching string

File:
1 edited

Legend:

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

    r3266412 rdc0e41c  
    228228       
    229229        while ((hint = hints_enum(name, NULL, &pos))) {
    230                 if ((found == 0) || (str_length(output) > str_length(hint)))
     230                if ((found == 0) || (str_length(hint) > str_length(output)))
    231231                        str_cpy(output, MAX_CMDLINE, hint);
    232232               
Note: See TracChangeset for help on using the changeset viewer.