From 3b224458a5d539bbe00318d939c9a099f3f158e1 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 4 Feb 2020 05:34:27 +0100 Subject: better parsing --- src/capture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/capture.c') diff --git a/src/capture.c b/src/capture.c index 59c49ec..3015621 100644 --- a/src/capture.c +++ b/src/capture.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/11 13:15:11 by cacharle #+# #+# */ -/* Updated: 2020/02/04 00:29:59 by cacharle ### ########.fr */ +/* Updated: 2020/02/04 05:32:47 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -64,7 +64,7 @@ t_bool bmp_write(t_image *image, t_byte file_header[FILE_HEADER_SIZE], int fd; t_byte *bmp_data; - if ((fd = open(CAPTURE_FILENAME, O_WRONLY | O_CREAT, S_IRWXU)) < 0) + if ((fd = open(CAPTURE_FILENAME, O_WRONLY | O_CREAT, 0644)) < 0) return (FALSE); if ((bmp_data = malloc(sizeof(unsigned char) * (image->width * IMG_DEPTH))) == NULL) -- cgit