diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-10-20 13:39:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 13:39:25 (GMT) |
commit | b035a11197f69770db5c7ebfb50cb42afc22468d (patch) | |
tree | 46d49e07c2fc3870e97a4773ed9b92732bc375a6 | |
parent | f3baca79549205c19cde6712a93982f971b58da5 (diff) | |
download | Doxygen-b035a11197f69770db5c7ebfb50cb42afc22468d.zip Doxygen-b035a11197f69770db5c7ebfb50cb42afc22468d.tar.gz Doxygen-b035a11197f69770db5c7ebfb50cb42afc22468d.tar.bz2 |
Update markdown.cpp
Added size check
-rw-r--r-- | src/markdown.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index 8da908c..fd226f2 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -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--; |