Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions loader/boot_protocol/ultra.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ static void load_all_modules(struct config *cfg, struct loadable_entry *le,
&module_value, true));
}

#define MAX_CMDLINE_LEN 256
#define MAX_CMDLINE_LEN 512

static bool get_cmdline(struct config *cfg, struct loadable_entry *le,
char *storage, struct string_view *out_str)
Expand All @@ -912,7 +912,10 @@ static bool get_cmdline(struct config *cfg, struct loadable_entry *le,
return false;

if (out_str->size > MAX_CMDLINE_LEN)
oops("command line is too big %zu vs max 256\n", out_str->size);
oops(
"command line is too big %zu vs max " TO_STR(MAX_CMDLINE_LEN) "\n",
out_str->size
);

memcpy(storage, out_str->text, out_str->size);

Expand Down
Loading