Skip to content

Commit

Permalink
wmkdep: Corrected string reallocation for a very uncommon special case
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Weller committed Jul 12, 2023
1 parent 044bfdb commit 70290b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wmake/src/wmkdep.l
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand Down Expand Up @@ -430,7 +430,7 @@ char* strRep(char* str, struct searchReplace* sr)
{
if (sr->replaceLen > sr->searchLen)
{
const size_t start = str - searchStart;
const size_t start = searchStart - str;
str = realloc
(
str,
Expand Down

0 comments on commit 70290b3

Please sign in to comment.