Skip to content

Commit

Permalink
Fix size argument
Browse files Browse the repository at this point in the history
  • Loading branch information
W2Wizard committed Apr 13, 2022
1 parent abc75f5 commit 7d82149
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/mlx_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: W2Wizard <[email protected]> +#+ */
/* +#+ */
/* Created: 2022/01/03 20:13:17 by W2Wizard #+# #+# */
/* Updated: 2022/04/13 00:15:02 by w2wizard ######## odam.nl */
/* Updated: 2022/04/13 12:07:01 by lde-la-h ######## odam.nl */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -47,7 +47,7 @@ bool mlx_getline(char** out, size_t* out_size, FILE* file)
*out = temp;
*out_size = size;

strncat(*out, BUFF, sizeof(BUFF));
strncat(*out, BUFF, size);
if (strrchr(BUFF, '\n'))
return (true);
memset(BUFF, '\0', sizeof(BUFF));
Expand Down

0 comments on commit 7d82149

Please sign in to comment.