Fixed bugs reported by nsz_
This commit is contained in:
parent
9af11035d3
commit
6a94a6b5ec
1 changed files with 2 additions and 1 deletions
3
smu.c
3
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue