stoped putting file arount the system

This commit is contained in:
gazhonsepaskwa
2025-02-11 14:53:24 +01:00
parent 59665ee8b6
commit ef3a07b2f3
4 changed files with 9 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ char *get_pwd()
return (ft_strdup(""));
pwd_base = pwd;
cpy = pwd;
if (ft_strncmp(pwd, "/home", 5) == 0)
if (ft_strncmp(pwd, "/home/", 6) == 0)
{
pwd += 6;
while (pwd && *pwd && (*pwd) != '/')