Skip to content

Commit 54e8d12

Browse files
authored
Update jpegr.cpp
1 parent 498eead commit 54e8d12

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/src/jpegr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <deque>
2626
#include <functional>
2727
#include <mutex>
28+
#include <stdexcept>
2829
#include <thread>
2930

3031
#include "ultrahdr/editorhelper.h"
@@ -1451,7 +1452,7 @@ uhdr_error_info_t JpegR::decodeJPEGR(uhdr_compressed_image_t* uhdr_compressed_im
14511452
uhdr_error_info_t status;
14521453
status.error_code = UHDR_CODEC_MEM_ERROR;
14531454
status.has_detail = 1;
1454-
snprintf(status.detail, sizeof status.detail, "The output buffer size is too small: " + e.what());
1455+
snprintf(status.detail, sizeof status.detail, "The output buffer size is too small: %s", e.what());
14551456
return status;
14561457
}
14571458

0 commit comments

Comments
 (0)