Skip to content

Commit

Permalink
Bug fix for issue #106.
Browse files Browse the repository at this point in the history
  • Loading branch information
aous72 committed Jul 31, 2023
1 parent 5832bf7 commit 56fecf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/codestream/ojph_codestream_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ namespace ojph {
t = swap_byte(comments[i].Rcom);
if (file->write(&t, 2) != 2)
OJPH_ERROR(0x0003002A, "Error writing to file");
if (file->write(comments[i].data, len) != len)
if (file->write(comments[i].data, comments[i].len) != comments[i].len)
OJPH_ERROR(0x0003002B, "Error writing to file");
}
}
Expand Down

0 comments on commit 56fecf8

Please sign in to comment.