null terminate exapnd string mem

This commit is contained in:
Quinten Mennen 2025-02-26 18:36:33 +01:00
parent 2059f7d634
commit 5b3d446b75

View File

@ -1,12 +1,12 @@
/* ************************************************************************** */
/* */
/* :::::::: */
/* expander_allocate_memory.c :+: :+: */
/* +:+ */
/* By: qmennen <qmennen@student.codam.nl> +#+ */
/* +#+ */
/* ::: :::::::: */
/* expander_allocate_memory.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/19 13:57:19 by qmennen #+# #+# */
/* Updated: 2025/02/26 16:10:42 by whaffman ######## odam.nl */
/* Updated: 2025/02/26 18:05:17 by qmennen ### ########.fr */
/* */
/* ************************************************************************** */
@ -37,5 +37,6 @@ char *expander_allocate_memory(
}
size += ft_strlen(s);
string = malloc_safe(msh, size);
string[0] = 0;
return (string);
}