From 3f726e2433438176a6b7f73df7d6bf51a185c5b2 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 12 Sep 2020 18:11:56 +0200 Subject: Fix --- src/b_alias.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/b_alias.c') diff --git a/src/b_alias.c b/src/b_alias.c index 55b7232..5ca86da 100644 --- a/src/b_alias.c +++ b/src/b_alias.c @@ -28,11 +28,13 @@ static void /* char buff[255][255][ARG_MAX]; */ ptr = msh->alias; + i = 0; while (ptr != NULL) { - ft_printf("alias %s='%s'\n", ptr->name, ptr->val); ptr = ptr->next; + i++; } + ft_printf("alias %s='%s'\n", ptr->name, ptr->val); } static uint8_t -- cgit v1.2.3