fix twtxt parsing
This commit is contained in:
parent
61ac5d0e61
commit
2bf39ebcff
1 changed files with 5 additions and 1 deletions
6
main.c
6
main.c
|
@ -75,7 +75,7 @@ int gettwtxt(FILE* f) {
|
||||||
char datebuf[16] = {0};
|
char datebuf[16] = {0};
|
||||||
char msgbuf[240] = {0};
|
char msgbuf[240] = {0};
|
||||||
char urlbuf[256] = {0};
|
char urlbuf[256] = {0};
|
||||||
char *l, *d, *m;
|
char *l, *d, *m, *u;
|
||||||
FILE* twtxt = fopen(SITEROOT TWTXT, "r");
|
FILE* twtxt = fopen(SITEROOT TWTXT, "r");
|
||||||
|
|
||||||
scat(buf, "<div id='twtxtFeed'><h2>recent activity</h2>\n<table>\n");
|
scat(buf, "<div id='twtxtFeed'><h2>recent activity</h2>\n<table>\n");
|
||||||
|
@ -129,6 +129,10 @@ int gettwtxt(FILE* f) {
|
||||||
while (*m) {
|
while (*m) {
|
||||||
*m++ = 0;
|
*m++ = 0;
|
||||||
}
|
}
|
||||||
|
u = urlbuf;
|
||||||
|
while (*u) {
|
||||||
|
*u++ = 0;
|
||||||
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
fclose(twtxt);
|
fclose(twtxt);
|
||||||
|
|
Loading…
Reference in a new issue