]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools: use strlen() for string literals
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 24 May 2025 11:06:13 +0000 (12:06 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 29 May 2025 22:10:16 +0000 (17:10 -0500)
commit0b116d8a6e3388ad45845965f7317ba336d30909
tree4eabc57aefebd06871fd35502ae39de52a055ccb
parentdfaed74ccbe42b34c384f926a078416199d64baa
tools: use strlen() for string literals

Older compilers had struggles expanding strlen(string-literal) to a
constant compile time expression. Thus our code-base used sizeof() - 1
instead.

This has been resolved for years, so let's use the correct function.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/354
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/depmod.c
tools/modprobe.c