Changes in kernel/genarch/src/multiboot/multiboot.c [ba1ea40:3009164] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/multiboot/multiboot.c
rba1ea40 r3009164 36 36 #include <genarch/multiboot/multiboot.h> 37 37 #include <config.h> 38 #include <stddef.h> 38 39 #include <str.h> 39 40 … … 98 99 99 100 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 }121 101 } 122 102
Note:
See TracChangeset
for help on using the changeset viewer.