summaryrefslogtreecommitdiffstats
path: root/src/markdown.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-10-20 13:39:25 (GMT)
committerGitHub <noreply@github.com>2020-10-20 13:39:25 (GMT)
commitb035a11197f69770db5c7ebfb50cb42afc22468d (patch)
tree46d49e07c2fc3870e97a4773ed9b92732bc375a6 /src/markdown.cpp
parentf3baca79549205c19cde6712a93982f971b58da5 (diff)
downloadDoxygen-b035a11197f69770db5c7ebfb50cb42afc22468d.zip
Doxygen-b035a11197f69770db5c7ebfb50cb42afc22468d.tar.gz
Doxygen-b035a11197f69770db5c7ebfb50cb42afc22468d.tar.bz2
Update markdown.cpp
Added size check
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp2
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--;