summaryrefslogtreecommitdiffstats
path: root/fish/tilde.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish/tilde.c')
-rw-r--r--fish/tilde.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fish/tilde.c b/fish/tilde.c
index 13e6cd8f..f0a22590 100644
--- a/fish/tilde.c
+++ b/fish/tilde.c
@@ -64,8 +64,8 @@ try_tilde_expansion (char *str)
len = strlen (home) + strlen (rest);
str = malloc (len);
if (str == NULL) {
- perror ("malloc");
- exit (1);
+ perror ("malloc");
+ exit (1);
}
strcpy (str, home);
strcat (str, rest);
@@ -113,7 +113,7 @@ find_home_for_username (const char *username, int ulen)
setpwent ();
while ((pw = getpwent ()) != NULL) {
if (strlen (pw->pw_name) == ulen &&
- strncmp (username, pw->pw_name, ulen) == 0)
+ strncmp (username, pw->pw_name, ulen) == 0)
return pw->pw_dir;
}