fix twtxt parsing
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQT/foVVmI9pK13hPWFohAcXSWbK8wUCZvoWggAKCRBohAcXSWbK 8066AP4n+SK6v93y9iwdJr+pDQr1eylN3OClaf0Gqf4hdgIqbAEA3W7ts/Dm6CCC z6+3MF0w14H8XPTdst8Tt2XHdHSunwI= =UwUg -----END PGP SIGNATURE-----
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
main.c
→
main.c
@@ -75,7 +75,7 @@ char line[256];
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");@@ -128,6 +128,10 @@ }
m = msgbuf; while (*m) { *m++ = 0; + } + u = urlbuf; + while (*u) { + *u++ = 0; } i++; }