From f0a0580682dd2f7d2ec9a11a4d7d29eaf4ad75c3 Mon Sep 17 00:00:00 2001 From: Syping Date: Sat, 7 Jan 2023 21:17:49 +0100 Subject: [PATCH] RagePhoto: fix iconv regression --- src/RagePhoto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RagePhoto.cpp b/src/RagePhoto.cpp index eeedb63..660b7a1 100644 --- a/src/RagePhoto.cpp +++ b/src/RagePhoto.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * libragephoto RAGE Photo Parser -* Copyright (C) 2021-2022 Syping +* Copyright (C) 2021-2023 Syping * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -224,7 +224,7 @@ bool RagePhoto::load(const char *data, size_t length) return false; } size_t src_s = sizeof(photoHeader); - size_t dst_s = sizeof(m_data.header); + size_t dst_s = 256; char *src = photoHeader; char *dst = m_data.header; const size_t ret = iconv(iconv_in, &src, &src_s, &dst, &dst_s);