mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
cwk_path_get_extension's length should not point to nullptr
This commit is contained in:
parent
c23385a243
commit
9f0d1aed80
@ -182,7 +182,8 @@ namespace Driver
|
||||
if (cwk_path_has_extension(driver->Name))
|
||||
{
|
||||
const char *extension;
|
||||
cwk_path_get_extension(driver->Name, &extension, nullptr);
|
||||
size_t extension_length;
|
||||
cwk_path_get_extension(driver->Name, &extension, &extension_length);
|
||||
debug("Driver: %s; Extension: %s", driver->Name, extension);
|
||||
if (strcmp(extension, ".fex") == 0 || strcmp(extension, ".elf") == 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user