「🔨」 fix: fixed some things.

This commit is contained in:
KeyZox committed 2024-05-07 11:04:20 +02:00
1 parent cff9e40005
commit 44bcb15a33
7 files changed
+114 -13

No files matched your search

+2 -2
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);