aboutsummaryrefslogtreecommitdiff
path: root/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c2
1 files changed, 1 insertions, 1 deletions
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;