From b7db722f78a25f347e02fea48b381ea7f87b9b1c Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 17 Oct 1998 16:14:00 +0000 Subject: "Fixed" a printf format error. Use bogus casts to avoid using %p so that the output doesn't change (unless the old format caused runtime errors). --- contrib/sendmail/src/mci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/sendmail/src/mci.c b/contrib/sendmail/src/mci.c index efb8cbad67a84..9e1e3b61c92b6 100644 --- a/contrib/sendmail/src/mci.c +++ b/contrib/sendmail/src/mci.c @@ -428,7 +428,9 @@ mci_dump(mci, logit) sep = logit ? " " : "\n\t"; p = buf; - snprintf(p, SPACELEFT(buf, p), "MCI@%x: ", mci); + snprintf(p, SPACELEFT(buf, p), "MCI@%lx: ", + sizeof(void *) == sizeof(u_long) ? + (u_long)(void *)mci : (u_long)(u_int)(void *)mci); p += strlen(p); if (mci == NULL) { -- cgit v1.3