summaryrefslogtreecommitdiffstats
path: root/fish/tilde.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish/tilde.c')
-rw-r--r--fish/tilde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish/tilde.c b/fish/tilde.c
index 1c52d3ed..64b5b399 100644
--- a/fish/tilde.c
+++ b/fish/tilde.c
@@ -110,7 +110,7 @@ find_home_for_username (const char *username, size_t ulen)
setpwent ();
while ((pw = getpwent ()) != NULL) {
if (strlen (pw->pw_name) == ulen &&
- strncmp (username, pw->pw_name, ulen) == 0)
+ STREQLEN (username, pw->pw_name, ulen))
return pw->pw_dir;
}