This commit is contained in:
Curt Spark 2024-07-20 13:12:01 +01:00
parent 4e8cb75c53
commit 68254ac452
1 changed files with 1 additions and 0 deletions

View File

@ -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);