X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fsiconv.c;fp=util%2Fsiconv.c;h=c89de49d8140675b978e6ffe7fa2213e7d1c80b1;hp=8bbc4edb69f4346ecb7f8e8f742b688cf68d74b9;hb=d054cdd41417401fbba915e20203882159f32283;hpb=400d5579f2fc2476dc8d97653e97b244691059c8 diff --git a/util/siconv.c b/util/siconv.c index 8bbc4ed..c89de49 100644 --- a/util/siconv.c +++ b/util/siconv.c @@ -2,7 +2,7 @@ * Copyright (c) 1997-2002, Index Data * See the file LICENSE for details. * - * $Id: siconv.c,v 1.5 2002-09-24 08:05:41 adam Exp $ + * $Id: siconv.c,v 1.6 2002-09-25 12:37:08 adam Exp $ */ /* mini iconv and wrapper for system iconv library (if present) */ @@ -373,7 +373,7 @@ size_t yaz_iconv (yaz_iconv_t cd, char **inbuf, size_t *inbytesleft, iconv(cd->iconv_cd, inbuf, inbytesleft, outbuf, outbytesleft); if (r == (size_t)(-1)) { - switch (errno) + switch (yaz_errno()) { case E2BIG: cd->my_errno = YAZ_ICONV_E2BIG;