Skip to content

Commit

Permalink
replace call to iconv procedure with ICONV macro (#818)
Browse files Browse the repository at this point in the history
The availability of the iconv procedure varies with different build
settings, so I believe the ICONV macro should be used here instead.
  • Loading branch information
Bogdanp authored Mar 24, 2024
1 parent d327968 commit 20da46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/prim5.c
Original file line number Diff line number Diff line change
Expand Up @@ -2281,7 +2281,7 @@ static size_t iconv_fixup(iconv_t cd, char **src, size_t *srcleft, char **dst, s
size_t orig_srcleft = *srcleft, orig_dstleft = *dstleft, srcuntried = 0;

while (1) {
r = iconv((iconv_t)cd, src, srcleft, dst, dstleft);
r = ICONV((iconv_t)cd, src, srcleft, dst, dstleft);
if ((r == (size_t)-1)
&& (errno == E2BIG)
&& ((*srcleft < orig_srcleft) || (*dstleft < orig_dstleft))) {
Expand Down

0 comments on commit 20da46f

Please sign in to comment.