Ignore:
Timestamp:
2017-10-17T13:11:35Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60af4cdb
Parents:
dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline

File:
1 edited

Legend:

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

    rdbf32b1 r95c675b  
    3636#include <genarch/multiboot/multiboot.h>
    3737#include <config.h>
     38#include <stddef.h>
    3839#include <str.h>
    3940
     
    9899
    99100        str_ncpy(buf, size, start, (size_t) (end - start));
    100 }
    101 
    102 static void multiboot_cmdline(char *cmdline)
    103 {
    104         /*
    105          * GRUB passes the command line in an escaped form.
    106          */
    107         for (size_t i = 0, j = 0;
    108             cmdline[i] && j < CONFIG_BOOT_ARGUMENTS_BUFLEN;
    109             i++, j++) {
    110                 if (cmdline[i] == '\\') {
    111                         switch (cmdline[i + 1]) {
    112                         case '\\':
    113                         case '\'':
    114                         case '\"':
    115                                 i++;
    116                                 break;
    117                         }
    118                 }
    119                 bargs[j] = cmdline[i];
    120         }
    121101}
    122102
Note: See TracChangeset for help on using the changeset viewer.