Ignore:
Timestamp:
2018-12-14T18:48:04Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.