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:
@ -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);
|
||||
|
Reference in New Issue
Block a user