Comment
This commit is contained in:
parent
4e8cb75c53
commit
68254ac452
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue