libkmod: Fix typo

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/148
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
This commit is contained in:
Tobias Stoeckmann 2024-09-23 20:32:53 +02:00 committed by Lucas De Marchi
parent f60d026e9f
commit 9626e13572

View File

@ -344,7 +344,7 @@ struct kmod_elf *kmod_elf_new(const void *memory, off_t size)
uint64_t slen;
const char *s = elf_get_strings_section(elf, &slen);
if (slen == 0 || s[slen - 1] != '\0') {
ELFDBG(elf, "strings section does not ends with \\0\n");
ELFDBG(elf, "strings section does not end with \\0\n");
goto invalid;
}
}