fix twtxt parsing

This commit is contained in:
Iris Lightshard 2024-09-29 21:09:54 -06:00
parent 61ac5d0e61
commit 2bf39ebcff
Signed by: Iris Lightshard
GPG key ID: 688407174966CAF3

6
main.c
View file

@ -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, "<div id='twtxtFeed'><h2>recent activity</h2>\n<table>\n");
@ -129,6 +129,10 @@ int gettwtxt(FILE* f) {
while (*m) {
*m++ = 0;
}
u = urlbuf;
while (*u) {
*u++ = 0;
}
i++;
}
fclose(twtxt);