diff --git a/42sh/Makefile b/42sh/Makefile index 919a1bd9..fc426b65 100644 --- a/42sh/Makefile +++ b/42sh/Makefile @@ -6,14 +6,14 @@ # By: wescande +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2016/08/29 21:32:58 by wescande #+# #+# # -# Updated: 2017/03/23 16:37:26 by gwojda ### ########.fr # +# Updated: 2017/03/23 16:49:08 by gwojda ### ########.fr # # # # **************************************************************************** # NAME = 42sh CC = gcc -FLAGS = -Wall -Wextra -Werror -fvisibility=hidden -fsanitize=address +FLAGS = -Wall -Wextra -Werror #-fvisibility=hidden -fsanitize=address D_FLAGS = -g DELTA = $$(echo "$$(tput cols)-47"|bc) diff --git a/42sh/libft/Makefile b/42sh/libft/Makefile index a7370723..c0902fc6 100644 --- a/42sh/libft/Makefile +++ b/42sh/libft/Makefile @@ -6,7 +6,7 @@ # By: jhalford +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2017/02/07 16:09:36 by jhalford #+# #+# # -# Updated: 2017/03/23 16:38:05 by gwojda ### ########.fr # +# Updated: 2017/03/23 16:49:31 by gwojda ### ########.fr # # # # **************************************************************************** # diff --git a/42sh/src/line_editing/copy_cut_paste/copy_cut_paste.c b/42sh/src/line_editing/copy_cut_paste/copy_cut_paste.c index 508d73f5..1d4cbf84 100644 --- a/42sh/src/line_editing/copy_cut_paste/copy_cut_paste.c +++ b/42sh/src/line_editing/copy_cut_paste/copy_cut_paste.c @@ -6,7 +6,7 @@ /* By: gwojda +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/19 12:45:06 by gwojda #+# #+# */ -/* Updated: 2017/03/23 16:28:01 by gwojda ### ########.fr */ +/* Updated: 2017/03/23 16:52:38 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -43,7 +43,7 @@ int ft_x(char **str, size_t *pos) while (g_cpy[i].value && g_cpy[i].value != ret) ++i; if (g_cpy[i].value && (ret = g_cpy[i].f(str, pos, pos_ref))) - return (ret); + return (0); else break ; } @@ -72,7 +72,7 @@ int ft_c(char **str, size_t *pos) while (g_cpy[i].value && g_cpy[i].value != ret) ++i; if (g_cpy[i].value && (ret = g_cpy[i].f(str, pos, pos_ref))) - return (ret); + return (0); else if (!g_cpy[i].value) break ; }