svn commit: r229138 - stable/9/libexec/bootpd/tools/bootptest
Dimitry Andric
dim at FreeBSD.org
Sat Dec 31 19:28:55 UTC 2011
Author: dim
Date: Sat Dec 31 19:28:54 2011
New Revision: 229138
URL: http://svn.freebsd.org/changeset/base/229138
Log:
MFC r228584:
In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf
length modifier for the difference between two pointers.
Modified:
stable/9/libexec/bootpd/tools/bootptest/print-bootp.c
Directory Properties:
stable/9/libexec/bootpd/ (props changed)
Modified: stable/9/libexec/bootpd/tools/bootptest/print-bootp.c
==============================================================================
--- stable/9/libexec/bootpd/tools/bootptest/print-bootp.c Sat Dec 31 19:26:24 2011 (r229137)
+++ stable/9/libexec/bootpd/tools/bootptest/print-bootp.c Sat Dec 31 19:28:54 2011 (r229138)
@@ -310,7 +310,7 @@ rfc1048_print(bp, length)
len = *bp++;
if (bp + len > ep) {
/* truncated option */
- printf(" |(%d>%d)", len, ep - bp);
+ printf(" |(%d>%td)", len, ep - bp);
return;
}
/* Print the option value(s). */
More information about the svn-src-stable-9
mailing list