parentheses update

This commit is contained in:
gazhonsepaskwa
2025-01-30 10:18:48 +01:00
parent 94e2f26112
commit 615e91f991
5 changed files with 23 additions and 32 deletions

View File

@@ -38,7 +38,7 @@ char *replace_ampercent(char *src)
i = -1;
j = 0;
amp_count = get_amp_count(src);
out = malloc(ft_strlen(src) + amp_count * 4);
out = malloc(ft_strlen(src) + amp_count * 4 + 1);
while (src[++i])
{
if (src[i] == '&')