1
0
mirror of https://github.com/KeyZox71/ft_minipowershell.git synced 2025-05-14 00:08:47 +02:00

🔨」 fix: fixed some things.

This commit is contained in:
2024-05-07 11:04:20 +02:00
parent cff9e40005
commit 44bcb15a33
7 changed files with 114 additions and 13 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/02 10:36:31 by adjoly #+# #+# */
/* Updated: 2024/05/02 13:42:24 by adjoly ### ########.fr */
/* Updated: 2024/05/03 10:32:07 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -29,7 +29,7 @@ char *get_hostname(void)
free(buf);
return (buf);
}
hostname = ft_calloc(delimiter - buf, sizeof(char));
hostname = ft_calloc(delimiter - buf + 1, sizeof(char));
ft_strlcpy(hostname, buf, delimiter - buf + 1);
free(buf);
return (hostname);