diff options
author | dim <dim@FreeBSD.org> | 2011-12-16 15:55:43 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-16 15:55:43 +0000 |
commit | 75be8e3194c48ac0fc860d48ca52931f97f42174 (patch) | |
tree | 1101e75fdfd4b506b8dd0fd0549c1f65a78b92e4 /libexec/bootpd | |
parent | 3ac7a716c7ee8afd4772d07cf3cb19cb7768e248 (diff) | |
download | FreeBSD-src-75be8e3194c48ac0fc860d48ca52931f97f42174.zip FreeBSD-src-75be8e3194c48ac0fc860d48ca52931f97f42174.tar.gz |
In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf
length modifier for the difference between two pointers.
MFC after: 1 week
Diffstat (limited to 'libexec/bootpd')
-rw-r--r-- | libexec/bootpd/tools/bootptest/print-bootp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/bootpd/tools/bootptest/print-bootp.c b/libexec/bootpd/tools/bootptest/print-bootp.c index 9ea450e..b3ddbba 100644 --- a/libexec/bootpd/tools/bootptest/print-bootp.c +++ b/libexec/bootpd/tools/bootptest/print-bootp.c @@ -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). */ |