X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fwrbuf.c;h=09acce725edf7366dd4d0bff5e53c6ce14883cff;hb=479969ddd4d243955f2e64ef8571926429ad4f37;hp=d8a709e0ed304da0ce93238d0a6a24e00d43cbd8;hpb=270160339305b73c0b5cdf74f004c684e83e2cd8;p=yaz-moved-to-github.git diff --git a/src/wrbuf.c b/src/wrbuf.c index d8a709e..09acce7 100644 --- a/src/wrbuf.c +++ b/src/wrbuf.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: wrbuf.c,v 1.20 2007-09-17 19:14:26 adam Exp $ + * $Id: wrbuf.c,v 1.21 2007-10-15 12:00:31 adam Exp $ */ /** @@ -160,7 +160,7 @@ static int wrbuf_iconv_write_x(WRBUF b, yaz_iconv_t cd, const char *buf, { if (cd) { - char outbuf[12]; + char outbuf[16]; size_t inbytesleft = size; const char *inp = buf; while (inbytesleft) @@ -217,7 +217,7 @@ void wrbuf_iconv_reset(WRBUF b, yaz_iconv_t cd) { if (cd) { - char outbuf[12]; + char outbuf[16]; size_t outbytesleft = sizeof(outbuf); char *outp = outbuf; size_t r = yaz_iconv(cd, 0, 0, &outp, &outbytesleft);