Skip to content

Commit

Permalink
small fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sandsalamand committed Aug 12, 2018
1 parent 04ca5a3 commit f2f67a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ft_fuck_lists.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: sgrindhe <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/08/09 21:39:48 by sgrindhe #+# #+# */
/* Updated: 2018/08/09 22:36:37 by sgrindhe ### ########.fr */
/* Updated: 2018/08/12 01:40:05 by sgrindhe ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -16,7 +16,7 @@ void **ft_fuck_lists(t_list *lelist)
{
void **result;
size_t i;
t_list list_start;
t_list *list_start;

if (!lelist)
return (0);
Expand All @@ -32,9 +32,9 @@ void **ft_fuck_lists(t_list *lelist)
*result = list_start->content;
while (list_start->next)
{
*result++ = list_start->content;
(*result)++ = list_start->content;
free(list_start->content);
list_start = next;
list_start = list_start->next;
}
ft_memdel((void*)&list_start);
return (result);
Expand Down
4 changes: 2 additions & 2 deletions ft_strnew.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: sgrindhe <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/07/09 11:18:12 by sgrindhe #+# #+# */
/* Updated: 2018/08/05 23:23:17 by sgrindhe ### ########.fr */
/* Updated: 2018/08/12 01:40:24 by sgrindhe ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -21,7 +21,7 @@ char *ft_strnew(size_t size)
if (newstr == NULL)
return (NULL);
i = 0;
while (i <= size)
while (i < size)
{
newstr[i] = '\0';
i++;
Expand Down
4 changes: 2 additions & 2 deletions ft_strsplit.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: sgrindhe <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/08/04 23:27:15 by sgrindhe #+# #+# */
/* Updated: 2018/08/09 22:37:24 by sgrindhe ### ########.fr */
/* Updated: 2018/08/12 01:40:52 by sgrindhe ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -37,7 +37,7 @@ static char **prelim_checks(char const *s, char c)

if (!s)
return (NULL);
tab = (char **)malloc(sizeof(char *) * (ft_count_word(s, c)) + 1);
tab = (char **)malloc(sizeof(char *) * (ft_count_word(s, c) + 1));
if (tab == NULL)
return (NULL);
return (tab);
Expand Down

0 comments on commit f2f67a2

Please sign in to comment.