diff --git a/src/conio/ciolib.c b/src/conio/ciolib.c index 1e6f64052b7c11a317643a91ebd31d1c167ce207..560649def2dc8753dc6436821b14a39ee7aa692d 100644 --- a/src/conio/ciolib.c +++ b/src/conio/ciolib.c @@ -877,7 +877,7 @@ CIOLIBEXPORT int CIOLIBCALL ciolib_cprintf(const char *fmat, ...) va_end(argptr); #else -#if defined(_MSC_VER) || define(__MSVCRT__) +#if defined(_MSC_VER) || defined(__MSVCRT__) ret=_vsnprintf(str,sizeof(str)-1,fmat,argptr); #else @@ -895,7 +895,7 @@ CIOLIBEXPORT int CIOLIBCALL ciolib_cprintf(const char *fmat, ...) ret=vsprintf(str,fmat,argptr2); #endif va_end(argptr); -#if defined(_MSC_VER) || define(__MSVCRT__) +#if !(defined(_MSC_VER) || defined(__MSVCRT__)) va_end(argptr2); #endif if(ret>=0)