Skip to content

Commit

Permalink
replace call to iconv procedure with ICONV macro
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 committed Mar 23, 2024
1 parent d327968 commit b5fef06
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 b5fef06

Please sign in to comment.