In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf
length modifier for the difference between two pointers. MFC after: 1 week
This commit is contained in:
parent
5ed5554f0a
commit
747a8c81c7
@ -310,7 +310,7 @@ rfc1048_print(bp, length)
|
|||||||
len = *bp++;
|
len = *bp++;
|
||||||
if (bp + len > ep) {
|
if (bp + len > ep) {
|
||||||
/* truncated option */
|
/* truncated option */
|
||||||
printf(" |(%d>%d)", len, ep - bp);
|
printf(" |(%d>%td)", len, ep - bp);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Print the option value(s). */
|
/* Print the option value(s). */
|
||||||
|
Loading…
Reference in New Issue
Block a user