attach: convert to strequal()

parent 51c1b152
......@@ -130,7 +130,7 @@ static pid_t pidfd_get_pid(int dfd_init_pid, int pidfd)
int pid = -ESRCH;
char *slider = line;
if (strncmp(slider, prefix, prefix_len))
if (!strnequal(slider, prefix, prefix_len))
continue;
slider += prefix_len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment