X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fodr.c;h=645317e93effab63eca05f03010ed2498a60b7d4;hp=30b08c83ecbce9c0001503fbee606175d0b387d5;hb=021f5586a328c6600460aa9f9be664ba19ba20d4;hpb=acf93c6b774c7184c35c2b994d4d7764438656d8 diff --git a/src/odr.c b/src/odr.c index 30b08c8..645317e 100644 --- a/src/odr.c +++ b/src/odr.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: odr.c,v 1.14 2007-01-03 08:42:15 adam Exp $ + * $Id: odr.c,v 1.15 2007-02-23 10:15:01 adam Exp $ * */ @@ -22,6 +22,7 @@ #include #include +#include #include "odr-priv.h" static int log_level=0; @@ -295,15 +296,7 @@ void odr_printf(ODR o, const char *fmt, ...) char buf[4096]; va_start(ap, fmt); -#ifdef WIN32 - _vsnprintf(buf, sizeof(buf)-1, fmt, ap); -#else -#if HAVE_VSNPRINTF - vsnprintf(buf, sizeof(buf), fmt, ap); -#else - vsprintf(buf, fmt, ap); -#endif -#endif + yaz_vsnprintf(buf, sizeof(buf), fmt, ap); o->op->stream_write(o, o->print, ODR_VISIBLESTRING, buf, strlen(buf)); va_end(ap); }