all repos — eureka @ 2bf39ebcff1a033cd54316b128a83e2d6db13143

static site generator based on the 100r.co engine

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-----
commit

2bf39ebcff1a033cd54316b128a83e2d6db13143

parent

61ac5d0e6108b48f609e6331a4383df5b50d2491

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M main.cmain.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++; }