mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
forgot to null-terminate the extended attribute string in linky_extended_attributes
This commit is contained in:
@@ -502,6 +502,7 @@ linky_extended_attributes(MMIOT *f, struct footnote *p, int start)
|
||||
|
||||
while ( (c = pull(f)) != '}' )
|
||||
EXPAND(p->extended_attr) = c;
|
||||
EXPAND(p->extended_attr) = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
+3
-2
@@ -87,8 +87,9 @@ MMIOT *gfm_string(const char*,int,mkd_flag_t*); /* assemble input from a buffer
|
||||
void mkd_basename(MMIOT*,char*);
|
||||
|
||||
void mkd_initialize(void);
|
||||
void mkd_with_html5_tags(void);
|
||||
void mkd_shlib_destructor(void);
|
||||
|
||||
#define mkd_with_html5_tags() 0
|
||||
#define mkd_shlib_destructor() 0
|
||||
|
||||
/* compilation, debugging, cleanup
|
||||
*/
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ static struct _opt {
|
||||
{ "image", "images", 0, 1, 0, 1, MKD_NOIMAGE },
|
||||
{ "links", "links", 0, 1, 0, 1, MKD_NOLINKS },
|
||||
{ "strict", "conform to the markdown standard", 0, 0, 0, 1, MKD_STRICT },
|
||||
{ "relax", "conform to the markdown standard", 0, 1, 1, 1, MKD_STRICT },
|
||||
{ "relax", "(don't) conform to the markdown standard", 0, 1, 1, 1, MKD_STRICT },
|
||||
{ "standard", "conform to the markdown standard", 0, 0, 1, 1, MKD_STRICT },
|
||||
{ "tables", "tables", 0, 1, 0, 1, MKD_NOTABLES },
|
||||
{ "header", "pandoc-style headers", 0, 1, 0, 1, MKD_NOHEADER },
|
||||
|
||||
Reference in New Issue
Block a user