public this repo is viewable by everyone
Description: An implementation of markdown in C, using a PEG grammar
Clone URL: git://github.com/jgm/peg-markdown.git
Repo Search:
Properly terminate input string (overwriting EOF character).
jgm (author)
14 days ago
commit  8d8f6e2ba51b14b098052c9d4d0cef164cd6f1ad
tree    c3065cb9d017c30809df5f87f3535f04abdfea53
parent  dcbe375b31b8fe785d6171dda1dce302d3f89d9e
...
221
222
223
 
224
225
226
...
221
222
223
224
225
226
227
0
@@ -221,6 +221,7 @@ int main(int argc, char * argv[]) {
0
                 }
0
             }
0
         }
0
+ *curchar = 0; /* terminate string (other EOF character) */
0
         fclose(input);
0
     }
0
 

Comments

    No one has commented yet.