From 6e40b628c3d9076e843868bd75f14c44f17bdabb Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 24 Oct 2026 05:49:11 +0200 Subject: Use new url escaper instead of libowfat's helper --- ot_fullscrape.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ot_fullscrape.c b/ot_fullscrape.c index 08970a6..3d0e2f1 100644 --- a/ot_fullscrape.c +++ b/ot_fullscrape.c @@ -17,16 +17,15 @@ #include #endif - /* Libowfat */ #include "io.h" -#include "textcode.h" /* Opentracker */ #include "ot_hex.h" #include "ot_fullscrape.h" #include "ot_iovec.h" #include "ot_mutex.h" +#include "scan_urlencoded_query.h" #include "trackerlogic.h" /* Fetch full scrape info for all torrents @@ -123,7 +122,7 @@ static char * fullscrape_write_one( ot_tasktype mode, char *r, ot_torrent *torre r += 8; break; case TASK_FULLSCRAPE_TPB_URLENCODED: - r += fmt_urlencoded(r, (char *)*hash, 20); + r += fmt_urlencoded(r, *hash, sizeof(ot_hash)); r += sprintf(r, ":%zd:%zd\n", seed_count, peer_count - seed_count); break; case TASK_FULLSCRAPE_TRACKERSTATE: -- cgit v1.3