Clankers: code had several strcasecmp("XYZ", s, 3) strcasecmp("ABCD", s, 4) I ad...

@icing@chaos.social

Clankers: code had several

strcasecmp("XYZ", s, 3)
strcasecmp("ABCD", s, 4)

I added
strcasecmp("MN", s, strlen(s))

and Copilot says: "No, no, no. This will read past the length of "MN". Change the length parameter.

🙈

Edit: it was strncasecmp() of course, as @hyc correctly pointed out.