Skip to content

Commit

Permalink
betty checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfosse committed Mar 8, 2017
1 parent 5497a94 commit 58ed74b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 0x0A-malloc_free/5-argstostr.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,12 @@ char *argstostr(int ac, char **av)
length = length + _strlen(av[i]) + 1;

temp = malloc(length * sizeof(char));
if (temp == NULL)
if (temp == NULL)
return (NULL);
for (i = 0; i < ac; i++)
{
_strcat(temp, av[i]);
_strcat(temp, "\n");
}
return (temp);

}

0 comments on commit 58ed74b

Please sign in to comment.