From 68254ac45289dabddb6be540ce94e4ffadda8f82 Mon Sep 17 00:00:00 2001 From: cspark Date: Sat, 20 Jul 2024 13:12:01 +0100 Subject: [PATCH] Comment --- lib/bmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bmp.c b/lib/bmp.c index 191329a..e04a703 100644 --- a/lib/bmp.c +++ b/lib/bmp.c @@ -48,6 +48,7 @@ int write_to_bitmap(bitmap *bitmap_in, char *filename) { int8_t fd = open(filename, O_WRONLY | O_CREAT); if (fd == -1) return -1; + /* This is writing out of bounds (bitmap < bitmap_file_size), please fix */ write_status = write(fd, bitmap_in_byte_ptr, calc_bitmap_file_size_bytes(bitmap_in)); if (fd == -1) { close(fd);