summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/test
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2001-08-01 01:33:27 +0000
committergshapiro <gshapiro@FreeBSD.org>2001-08-01 01:33:27 +0000
commit1164bba81c60839834c20d6e34983b4cfb9c05b4 (patch)
tree1b106cba9bbe44e5768f7bfba991f9fc8a74429b /contrib/sendmail/test
parent5338b6ff5f88e435da457fd0ec979a333012a0ef (diff)
downloadFreeBSD-src-1164bba81c60839834c20d6e34983b4cfb9c05b4.zip
FreeBSD-src-1164bba81c60839834c20d6e34983b4cfb9c05b4.tar.gz
Import sendmail 8.11.5
Diffstat (limited to 'contrib/sendmail/test')
-rw-r--r--contrib/sendmail/test/t_snprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/sendmail/test/t_snprintf.c b/contrib/sendmail/test/t_snprintf.c
index 4789f49..3117af5 100644
--- a/contrib/sendmail/test/t_snprintf.c
+++ b/contrib/sendmail/test/t_snprintf.c
@@ -13,7 +13,8 @@ main(argc, argv)
r = snprintf(buf, sizeof buf, "%s", TEST_STRING);
- if (buf[sizeof buf - 1] != '\0')
+ if (buf[sizeof buf - 1] != '\0' ||
+ r != strlen(TEST_STRING))
{
fprintf(stderr, "Add the following to devtools/Site/site.config.m4:\n\n");
fprintf(stderr, "APPENDDEF(`confENVDEF', `-DSNPRINTF_IS_BROKEN=1')\n\n");
OpenPOWER on IntegriCloud