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

Changeset b6d5e31 in mainline


Ignore:
Timestamp:
2018-12-14T18:48:04Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
3c8b0a8
Parents:
54cde43
Message:

Fix multiboot command extraction

If the command on command line did not contain a slash, the result
would have been garbage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/multiboot/multiboot.c

    r54cde43 rb6d5e31  
    5555        /*
    5656         * Find last occurence of '/' before 'end'. If found, place start at
    57          * next character. Otherwise, place start at beginning of buffer.
     57         * next character. Otherwise, place start at beginning of command line.
    5858         */
    5959        const char *cp = end;
    60         const char *start = buf;
     60        const char *start = cmd_line;
    6161
    6262        while (cp != start) {
Note: See TracChangeset for help on using the changeset viewer.