Skip to content
  • Jacob Boerema's avatar
    plug-ins: fix incorrect size when comparing jpeg exif marker in EXR loader · 0585bc11
    Jacob Boerema authored
    When defining jpeg_exr a closing \0 is automatically added by the
    compiler. So when we compare it using sizeof, we do not compare
    6 bytes but 7. Since there won't be three 0's, this will fail.
    
    Fix this by reducing the size by 1 and also update the comment to
    make this clear and further to add that this was changed after
    darktable 4.0.0.
    0585bc11