Changeset 95c675b in mainline for kernel/genarch/src/multiboot/multiboot.c
- Timestamp:
- 2017-10-17T13:11:35Z (7 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified kernel/genarch/src/multiboot/multiboot.c ¶
rdbf32b1 r95c675b 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.