Commit 9ed8c96f by Alexander Kriventsov

try to fix search user instead of search substring

parent 3e8a11cb
...@@ -423,7 +423,8 @@ static char *find_line(char *buf_start, char *buf_end, char *name, ...@@ -423,7 +423,8 @@ static char *find_line(char *buf_start, char *buf_end, char *name,
if (strncmp(buf_start, name, strlen(name))) if (strncmp(buf_start, name, strlen(name)))
*found = false; *found = false;
else else
*owner = true; if (strlen(name) == (size_t)(end_of_word - buf_start))
*owner = true;
buf_start = end_of_word + 1; buf_start = end_of_word + 1;
while ((buf_start < buf_end) && isblank(*buf_start)) while ((buf_start < buf_end) && isblank(*buf_start))
......
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