From b8d25d542a4dae532001ed6e0f6342d2b865e670 Mon Sep 17 00:00:00 2001 From: Lawrence Lee <45837045+Lawrence37@users.noreply.github.com> Date: Sun, 5 Feb 2023 17:46:13 -0800 Subject: [PATCH] Fix crash reading Pentax metadata --- rtengine/imagedata.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/rtengine/imagedata.cc b/rtengine/imagedata.cc index 4dbc3f0a0..bf80f8c51 100644 --- a/rtengine/imagedata.cc +++ b/rtengine/imagedata.cc @@ -430,7 +430,6 @@ FramesData::FramesData(const Glib::ustring &fname, time_t ts) : ) { if (find_exif_tag("Exif.Pentax.DriveMode")) { std::string buf = pos->toString(3); - buf[3] = 0; if (buf == "HDR") { isHDR = true; #if PRINT_HDR_PS_DETECTION