aboutsummaryrefslogtreecommitdiff
path: root/xsnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'xsnprintf.c')
-rw-r--r--xsnprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xsnprintf.c b/xsnprintf.c
index 9e7693b6..b0e17741 100644
--- a/xsnprintf.c
+++ b/xsnprintf.c
@@ -7,7 +7,7 @@
size_t
xvsnprintf(char *buf, size_t n, const char *format, va_list ap)
{
- assert(n <= INT_MAX);
+ xassert(n <= INT_MAX);
int len = vsnprintf(buf, n, format, ap);
/*
@@ -19,8 +19,8 @@ xvsnprintf(char *buf, size_t n, const char *format, va_list ap)
* has been completely written if and only if the returned value
* is nonnegative and less than n."
*/
- assert(len >= 0);
- assert(len < (int)n);
+ xassert(len >= 0);
+ xassert(len < (int)n);
return (size_t)len;
}