projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Iconv fix: Dont move inbuf pointer for bad init sequence
[yaz-moved-to-github.git]
/
util
/
siconv.c
diff --git
a/util/siconv.c
b/util/siconv.c
index
9c28d18
..
a40cc0c
100644
(file)
--- a/
util/siconv.c
+++ b/
util/siconv.c
@@
-2,7
+2,7
@@
* Copyright (c) 1997-2002, Index Data
* See the file LICENSE for details.
*
* 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) */
*/
/* 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_EINVAL)
return r;
cd->init_flag = 0;
- if (cd->my_errno == YAZ_ICONV_EILSEQ)
- {
- *inbytesleft++;
- (*inbuf)++;
- }
return r;
}
*inbytesleft -= no_read;
return r;
}
*inbytesleft -= no_read;