Fixed bugs reported by nsz_ - smu - smu - simple markup (Markdown) processor (fork, fixes + features)
(HTM) git clone git://git.codemadness.org/smu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 6a94a6b5ec892789d016af8fd6b99701182fd445
(DIR) parent 9af11035d3c48ddb52cae2826fda51f71c35167b
(HTM) Author: gottox@rootkit.lan <gottox@rootkit.lan>
Date: Tue, 1 Jan 2008 15:30:04 +0100
Fixed bugs reported by nsz_
Diffstat:
M smu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) 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;
}