From 28616d1f5cc56d5a91b414af6d9aec51ad996081 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 24 Jul 2026 08:37:03 +0200 Subject: libs/mb2: fix boot module command line bug --- kernel/kapi/boot_module/bus.cpp | 3 +-- libs/multiboot2/multiboot2/information/tag.hpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/kapi/boot_module/bus.cpp b/kernel/kapi/boot_module/bus.cpp index 3e95a3ac..83c97f8e 100644 --- a/kernel/kapi/boot_module/bus.cpp +++ b/kernel/kapi/boot_module/bus.cpp @@ -20,8 +20,7 @@ namespace kapi::boot_modules { auto const text = std::string_view{token}; auto const equals = text.find('='); - if (equals != std::string_view::npos && text.substr(0, equals) == key && - text.substr(equals + 1, value.size()) == value) + if (equals != std::string_view::npos && text.substr(0, equals) == key && text.substr(equals + 1) == value) { return true; } diff --git a/libs/multiboot2/multiboot2/information/tag.hpp b/libs/multiboot2/multiboot2/information/tag.hpp index 0c292994..2e907a72 100644 --- a/libs/multiboot2/multiboot2/information/tag.hpp +++ b/libs/multiboot2/multiboot2/information/tag.hpp @@ -193,7 +193,7 @@ namespace multiboot2 auto static vla_size(tag_header const * header) noexcept -> std::size_t { auto size = (header->unaligned_size() - sizeof(tag) - - std::is_same_v> * 1) / + std::is_same_v> * 1) / sizeof(VlaData); return size; } -- cgit v1.2.3