strcpy protection
This commit is contained in:
parent
dedd68047c
commit
470e6e3432
7 changed files with 8 additions and 8 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2016/11/04 11:09:12 by jhalford #+# #+# */
|
||||
/* Updated: 2017/02/17 14:07:04 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/03/13 15:36:19 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2016/11/04 11:09:30 by jhalford #+# #+# */
|
||||
/* Updated: 2016/11/16 14:00:07 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/03/13 15:31:13 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2016/12/05 13:39:33 by jhalford #+# #+# */
|
||||
/* Updated: 2017/03/03 13:34:45 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/03/13 15:31:10 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2016/11/03 14:57:17 by jhalford #+# #+# */
|
||||
/* Updated: 2016/11/04 13:11:05 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/03/13 15:37:23 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2016/11/29 15:57:38 by jhalford #+# #+# */
|
||||
/* Updated: 2017/03/08 00:21:44 by ariard ### ########.fr */
|
||||
/* Updated: 2017/03/13 15:41:27 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2016/11/03 18:03:26 by jhalford #+# #+# */
|
||||
/* Updated: 2016/11/03 18:03:26 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/03/13 16:07:24 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2016/08/07 10:48:12 by jhalford #+# #+# */
|
||||
/* Updated: 2016/12/07 15:23:05 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/03/13 16:06:49 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ char *ft_strcpy(char *dst, const char *src)
|
|||
int i;
|
||||
|
||||
i = 0;
|
||||
while (src[i])
|
||||
while (src && src[i])
|
||||
{
|
||||
dst[i] = src[i];
|
||||
i++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue