]> git.ipfire.org Git - thirdparty/kmod.git/commit
shared: 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)
commitdfaed74ccbe42b34c384f926a078416199d64baa
treef8fcfebc342f90dbf156fd7c2c2ce8d5d034c32d
parent723bdadc9f100263f870e5a8dcef14d3fe3d9501
shared: 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>
shared/util.c