From c1ebd067afe4e6a8b4987133cca6f96b7cd8b8df Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 24 Oct 2026 04:54:15 +0200 Subject: Use lib formatter for ints --- ot_accesslist.c | 5 ++--- 1 file 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 @@ #endif /* Libowfat */ -#include "fmt.h" #include "ip6.h" #include "mmap.h" @@ -512,9 +511,9 @@ int accesslist_bless_net(ot_net *net, ot_permissions permissions) { if (net->bits < 128) { _debug[off++] = '/'; if (ip6_isv4mapped(net->address)) - off += fmt_long(_debug + off, net->bits - 96); + off += snprintf(_debug + off, sizeof(_debug) - off, "%d", net->bits - 96); else - off += fmt_long(_debug + off, net->bits); + off += snprintf(_debug + off, sizeof(_debug) - off, "%d", net->bits); } if (permissions & OT_PERMISSION_MAY_STAT) -- cgit v1.3