mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Set field width based on sizeof(bitvector_t).
This commit is contained in:
parent
69c6779965
commit
ab82ccd033
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ void addrset_elem_print(FILE *fp, const struct addrset_elem *elem)
|
|||
if (elem->type == ADDRSET_TYPE_IPV4_BITVECTOR) {
|
||||
for (i = 0; i < 4; i++) {
|
||||
for (j = 0; j < sizeof(octet_bitvector) / sizeof(bitvector_t); j++)
|
||||
fprintf(fp, "%08lX ", elem->u.ipv4.bits[i][j]);
|
||||
fprintf(fp, "%0*lX ", (int) (sizeof(bitvector_t) * 2), elem->u.ipv4.bits[i][j]);
|
||||
fprintf(fp, "\n");
|
||||
}
|
||||
#ifdef HAVE_IPV6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue