Skip to content

Commit

Permalink
Fix an issue where WinMerge crashes depending on the filename when ge…
Browse files Browse the repository at this point in the history
…nerating a file compare report. (#1319)

- Fix to properly resize the buffer of the replaced character string in the process of replacing the special characters contained in the file name with the HTML entities.
  • Loading branch information
tjmprm77 authored May 2, 2022
1 parent 3defff1 commit e6c6699
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 @@ -208,7 +208,7 @@ std::string CMarkdown::Entities(const std::string& v)
{
ptrdiff_t i = p - &ret[0];
ptrdiff_t j = q - &ret[0];
size_t b = v.length();
size_t b = ret.length();
ret.resize(b + cchValue - 1);
p = &ret[0] + i;
q = &ret[0] + j;
Expand Down

0 comments on commit e6c6699

Please sign in to comment.