"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).
This commit is contained in:
Bruce Evans 1998-10-17 16:14:00 +00:00
parent 1ec86adf67
commit b7db722f78

View File

@ -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)
{