From 2bf39ebcff1a033cd54316b128a83e2d6db13143 Mon Sep 17 00:00:00 2001 From: Iris Lightshard Date: Sun, 29 Sep 2024 21:09:54 -0600 Subject: [PATCH] fix twtxt parsing --- main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 16f0cc0..acbb919 100644 --- a/main.c +++ b/main.c @@ -75,7 +75,7 @@ int gettwtxt(FILE* f) { char datebuf[16] = {0}; char msgbuf[240] = {0}; char urlbuf[256] = {0}; - char *l, *d, *m; + char *l, *d, *m, *u; FILE* twtxt = fopen(SITEROOT TWTXT, "r"); scat(buf, "

recent activity

\n\n"); @@ -129,6 +129,10 @@ int gettwtxt(FILE* f) { while (*m) { *m++ = 0; } + u = urlbuf; + while (*u) { + *u++ = 0; + } i++; } fclose(twtxt);