diff options
Diffstat (limited to 'plugins/Variables')
-rw-r--r-- | plugins/Variables/main.cpp | 1 | ||||
-rw-r--r-- | plugins/Variables/variables.cpp | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/plugins/Variables/main.cpp b/plugins/Variables/main.cpp index fc0d49147a..0335e7ae38 100644 --- a/plugins/Variables/main.cpp +++ b/plugins/Variables/main.cpp @@ -65,7 +65,6 @@ PLUGININFOEX pluginInfoEx = { "© 2003-2008 P. Boon, Ricardo Pescuma, George Hazan",
"http://www.miranda-im.org/",
UNICODE_AWARE,
- 0,
MIID_VARIABLES
};
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)
|