afetch icon indicating copy to clipboard operation
afetch copied to clipboard

replace strncmp calls with static size, replace single char compare

Open Jan200101 opened this issue 4 years ago • 0 comments

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.

Jan200101 avatar Dec 27 '21 00:12 Jan200101