RagePhoto: fix iconv regression
This commit is contained in:
parent
e08b45d980
commit
f0a0580682
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue