smu

Simple markup processor
git clone https://git.sinitax.com/codemadness/smu
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 6a94a6b5ec892789d016af8fd6b99701182fd445
parent 9af11035d3c48ddb52cae2826fda51f71c35167b
Author: gottox@rootkit.lan <gottox@rootkit.lan>
Date:   Tue,  1 Jan 2008 15:30:04 +0100

Fixed bugs reported by nsz_

Diffstat:
Msmu.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/smu.c b/smu.c @@ -268,7 +268,7 @@ dolist(const char *begin, const char *end, int newblock) { putchar('\n'); fputs(ul ? "<ul>\n" : "<ol>\n",stdout); run = 1; - for(i = 0; *p && p < end && run; p++) { + for(i = 0; p < end && *p && run; p++) { buffer[0] = '\0'; for(i = 0; *p && p < end && run; p++,i++) { if(*p == '\n') { @@ -532,6 +532,7 @@ main(int argc, char *argv[]) { } } process(buffer,buffer+strlen(buffer),1); + fclose(source); free(buffer); return EXIT_SUCCESS; }