commit
This commit is contained in:
@@ -46,7 +46,7 @@ struct s_stock_str *ft_strs_to_tab(int ac, char **av)
|
||||
t_stock_str *result;
|
||||
int i;
|
||||
|
||||
result = (t_stock_str *) malloc((ac + 1) * sizeof(result));
|
||||
result = malloc((ac + 1) * sizeof(t_stock_str));
|
||||
if (result == NULL)
|
||||
return (NULL);
|
||||
i = 0;
|
||||
|
||||
Reference in New Issue
Block a user