diff options
Diffstat (limited to 'ot_accesslist.c')
| -rw-r--r-- | ot_accesslist.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c index 9b0024c..e20f42c 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c | |||
| @@ -17,7 +17,6 @@ | |||
| 17 | #endif | 17 | #endif |
| 18 | 18 | ||
| 19 | /* Libowfat */ | 19 | /* Libowfat */ |
| 20 | #include "fmt.h" | ||
| 21 | #include "ip6.h" | 20 | #include "ip6.h" |
| 22 | #include "mmap.h" | 21 | #include "mmap.h" |
| 23 | 22 | ||
| @@ -512,9 +511,9 @@ int accesslist_bless_net(ot_net *net, ot_permissions permissions) { | |||
| 512 | if (net->bits < 128) { | 511 | if (net->bits < 128) { |
| 513 | _debug[off++] = '/'; | 512 | _debug[off++] = '/'; |
| 514 | if (ip6_isv4mapped(net->address)) | 513 | if (ip6_isv4mapped(net->address)) |
| 515 | off += fmt_long(_debug + off, net->bits - 96); | 514 | off += snprintf(_debug + off, sizeof(_debug) - off, "%d", net->bits - 96); |
| 516 | else | 515 | else |
| 517 | off += fmt_long(_debug + off, net->bits); | 516 | off += snprintf(_debug + off, sizeof(_debug) - off, "%d", net->bits); |
| 518 | } | 517 | } |
| 519 | 518 | ||
| 520 | if (permissions & OT_PERMISSION_MAY_STAT) | 519 | if (permissions & OT_PERMISSION_MAY_STAT) |
