From a19b3326f39623ae79b6679c010c8db04c22fdf4 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 28 Aug 2002 19:34:36 +0000 Subject: [PATCH] Iconv fix: Dont move inbuf pointer for bad init sequence --- util/siconv.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/util/siconv.c b/util/siconv.c index 9c28d18..a40cc0c 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.2 2002-08-27 21:45:28 adam Exp $ + * $Id: siconv.c,v 1.3 2002-08-28 19:34:36 adam Exp $ */ /* mini iconv and wrapper for system iconv library (if present) */ @@ -410,11 +410,6 @@ size_t yaz_iconv (yaz_iconv_t cd, char **inbuf, size_t *inbytesleft, if (cd->my_errno == YAZ_ICONV_EINVAL) return r; cd->init_flag = 0; - if (cd->my_errno == YAZ_ICONV_EILSEQ) - { - *inbytesleft++; - (*inbuf)++; - } return r; } *inbytesleft -= no_read; -- 1.7.10.4