diff options
Diffstat (limited to 'plugins/Variables/variables.cpp')
-rw-r--r-- | plugins/Variables/variables.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/Variables/variables.cpp b/plugins/Variables/variables.cpp index 9a451fb671..258725055f 100644 --- a/plugins/Variables/variables.cpp +++ b/plugins/Variables/variables.cpp @@ -377,9 +377,7 @@ static TCHAR* replaceDynVars(TCHAR* szTemplate, FORMATINFO* fi) MoveMemory(scur + parsedTokenLen, cur, (_tcslen(cur)+1)*sizeof(TCHAR));
CopyMemory(scur, parsedToken, parsedTokenLen*sizeof(TCHAR));
{
- int len;
-
- len = _tcslen(string);
+ size_t len = _tcslen(string);
string = (TCHAR*)mir_realloc(string, (len+1)*sizeof(TCHAR));
}
if (( ai.flags & AIF_DONTPARSE ) || tmpVarPos >= 0)
|