* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: marcdump.c,v 1.38 2006-06-07 10:51:14 adam Exp $
+ * $Id: marcdump.c,v 1.39 2006-06-12 16:12:58 mike Exp $
*/
#define _FILE_OFFSET_BITS 64
fclose(sf);
}
}
- r = yaz_marc_decode_buf (mt, buf, -1, &result, &rlen);
+ { int rlentmp = (int) rlen;
+ r = yaz_marc_decode_buf (mt, buf, -1, &result, &rlentmp);
+ rlen = (size_t) rlentmp; }
if (r > 0 && result)
{
fwrite (result, rlen, 1, stdout);