mirror of
https://github.com/systemd/systemd.git
synced 2026-07-13 02:51:14 +00:00
string-util: use strneq
This commit is contained in:
@@ -1537,7 +1537,7 @@ char *strrstr(const char *haystack, const char *needle) {
|
||||
return strchr(haystack, 0);
|
||||
|
||||
for (const char *p = haystack; *p; p++)
|
||||
if (strncmp(p, needle, l) == 0)
|
||||
if (strneq(p, needle, l))
|
||||
f = p;
|
||||
|
||||
return (char*) f;
|
||||
|
||||
Reference in New Issue
Block a user