From 1b60396980d340b473cb3c4654d32855b755396b Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 16 Mar 2002 20:45:41 +0000 Subject: [PATCH] Use CHECK instead of assert git-svn-id: svn://svn.cc65.org/cc65/trunk@1195 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/common/xsprintf.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/common/xsprintf.c b/src/common/xsprintf.c index 1f85c65a4..073aff49a 100644 --- a/src/common/xsprintf.c +++ b/src/common/xsprintf.c @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2000 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 2000-2002 Ullrich von Bassewitz */ +/* Wacholderweg 14 */ +/* D-70597 Stuttgart */ +/* EMail: uz@musoftware.de */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -34,8 +34,8 @@ #include -#include +#include "check.h" #include "xsprintf.h" @@ -52,7 +52,7 @@ int xsprintf (char* Buf, size_t BufSize, const char* Format, ...) int Res; va_list ap; - va_start (ap, Format); + va_start (ap, Format); Res = xvsprintf (Buf, BufSize, Format, ap); va_end (ap); @@ -74,7 +74,7 @@ int xvsprintf (char* Buf, size_t BufSize, const char* Format, va_list ap) /* Unsafe version */ int Res = vsprintf (Buf, Format, ap); #endif - assert (Res >= 0 && (unsigned) Res < BufSize); + CHECK (Res >= 0 && (unsigned) Res < BufSize); return Res; } -- 2.39.5