calls like strncmp(osname, "Alpine Linux", 12) end up being more work than they are worth and getting the length of the const string should be gathered at compile time.
instances of strncmp with a size of 1 were simple replace with a compare, if the logic around it ensures that the pointer will not be out of bounds.
calls like
strncmp(osname, "Alpine Linux", 12)
end up being more work than they are worth and getting the length of the const string should be gathered at compile time.instances of strncmp with a size of 1 were simple replace with a compare, if the logic around it ensures that the pointer will not be out of bounds.