X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fmarcdisp.c;h=6eeccb3ae10005cf700cd526441f3d559b8166b7;hp=9037b5b76a201c73f5d730471e3a5565ed1660b9;hb=021f5586a328c6600460aa9f9be664ba19ba20d4;hpb=acf93c6b774c7184c35c2b994d4d7764438656d8 diff --git a/src/marcdisp.c b/src/marcdisp.c index 9037b5b..6eeccb3 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdisp.c,v 1.46 2007-02-17 10:53:05 adam Exp $ + * $Id: marcdisp.c,v 1.47 2007-02-23 10:15:01 adam Exp $ */ /** @@ -26,6 +26,7 @@ #include #include #include +#include #if YAZ_HAVE_XML2 #include @@ -174,19 +175,9 @@ void yaz_marc_cprintf(yaz_marc_t mt, const char *fmt, ...) { va_list ap; char buf[200]; - va_start(ap, fmt); -#ifdef WIN32 - _vsnprintf(buf, sizeof(buf)-1, fmt, ap); -#else -/* !WIN32 */ -#if HAVE_VSNPRINTF - vsnprintf(buf, sizeof(buf), fmt, ap); -#else - vsprintf(buf, fmt, ap); -#endif -#endif -/* WIN32 */ + va_start(ap, fmt); + yaz_vsnprintf(buf, sizeof(buf)-1, fmt, ap); yaz_marc_add_comment(mt, buf); va_end (ap); }