iconv saving support
This commit is contained in:
parent
2f66a69f6b
commit
e996f4399d
2 changed files with 42 additions and 16 deletions
|
@ -64,7 +64,7 @@ int main(int argc, char *argv[])
|
|||
size_t dst_s = sizeof(photoString);
|
||||
char *src = photoHeader;
|
||||
char *dst = photoString;
|
||||
size_t ret = iconv(iconv_in, &src, &src_s, &dst, &dst_s);
|
||||
const size_t ret = iconv(iconv_in, &src, &src_s, &dst, &dst_s);
|
||||
iconv_close(iconv_in);
|
||||
if (ret == static_cast<size_t>(-1)) {
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue