From 15dc2c219595a92ca121578b13047e23156ea3fa Mon Sep 17 00:00:00 2001 From: jonas Date: Sun, 28 Apr 2019 11:00:27 +0200 Subject: Added DEBUG messages and debug make target --- bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitmap.c') diff --git a/bitmap.c b/bitmap.c index a99e335..bb88b46 100644 --- a/bitmap.c +++ b/bitmap.c @@ -22,7 +22,7 @@ struct bitmap_pixel_data bitmap_read(char *_file) ret.R = ret.G = ret.B = NULL; ret.error = 1; - FILE *bitmap = fopen(_file,"r"); + FILE *bitmap = fopen(_file,"rb"); if(!bitmap) return ret; -- cgit v1.2.3