summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/test/t_snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/sendmail/test/t_snprintf.c')
-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