parentheses update
This commit is contained in:
@@ -48,7 +48,7 @@ void draw_pline_part(t_ast_n *node, t_elems *e, int fd, int node_id)
|
||||
|
||||
i = 0;
|
||||
e->rect.y += e->rect.h + 50;
|
||||
while (node->pline[i])
|
||||
while (node->pline && node->pline[i])
|
||||
{
|
||||
e->arrow.id_dst = print_ast(node->pline[i++], e, fd);
|
||||
e->arrow.id_src = node_id;
|
||||
|
||||
@@ -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] == '&')
|
||||
|
||||
Reference in New Issue
Block a user