diff --git a/Userland/Libraries/LibGfx/ImageFormats/CCITTDecoder.cpp b/Userland/Libraries/LibGfx/ImageFormats/CCITTDecoder.cpp index 529a9d2990..48805f6fc4 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/CCITTDecoder.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/CCITTDecoder.cpp @@ -275,7 +275,7 @@ ErrorOr decode_single_ccitt3_1d_line(BigEndianInputBitStream& input_bit_st u32 run_length = 0; u32 column = 0; - while (column < image_width - 1) { + while (column < image_width) { if (run_length > 0) { run_length--; TRY(decoded_bits.write_bits(current_color == ccitt_white ? 0u : 1u, 1));