Skip to content

Commit

Permalink
Update markdown.cpp
Browse files Browse the repository at this point in the history
Added size check
  • Loading branch information
doxygen committed Oct 20, 2020
1 parent f3baca7 commit b035a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/markdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2068,7 +2068,7 @@ void Markdown::writeOneLineHeaderOrRuler(const char *data,int size)
m_out.addStr("</"+hTag+">\n");
}
}
else // nothing interesting -> just output the line
else if (size>0) // nothing interesting -> just output the line
{
int tmpSize = size;
if (data[size-1] == '\n') tmpSize--;
Expand Down

0 comments on commit b035a11

Please sign in to comment.