commit propre

This commit is contained in:
Antoine Riard 2017-03-15 02:14:15 +01:00
parent 23e15022d5
commit 80cfacb577
3 changed files with 3 additions and 15 deletions

View file

@ -1,12 +0,0 @@
#include <stdlib.h>
int main(void)
{
char *s;
s = malloc(5);
fork();
free(s);
sleep(100);
return (0);
}

View file

@ -6,7 +6,7 @@
/* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/28 14:25:17 by jhalford #+# #+# */
/* Updated: 2017/03/14 22:53:59 by ariard ### ########.fr */
/* Updated: 2017/03/15 02:12:56 by ariard ### ########.fr */
/* */
/* ************************************************************************** */
@ -31,7 +31,7 @@ int builtin_setenv(const char *path, char *const av[], char *const envp[])
}
else
{
str = ft_str3join(av[0], "=", av[1]);
str = ft_str3join(av[0], "=", av[2]);
while ((*env) && (*env)[i])
{
if (ft_strcmp((*env)[i], av[0]) == '=')

View file

@ -6,7 +6,7 @@
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/15 20:49:15 by ariard #+# #+# */
/* Updated: 2017/03/15 02:10:08 by ariard ### ########.fr */
/* Updated: 2017/03/15 02:12:28 by ariard ### ########.fr */
/* */
/* ************************************************************************** */