diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-03 21:47:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-03 21:47:03 +0000 |
commit | e412759d7e551e3fc4dc4be6e1fae1cd4f308868 (patch) | |
tree | 00ed12238ba8b3735ddf95cf9e79c48d7c411c78 /plugins/Variables | |
parent | 0f95cbb4a9f1c9a613dccb9d53f5ddb50a8cadd7 (diff) |
no more PLUGININFOEX::replacesDefaultModule, that old & nasty clutch
since now all Myranda plugins are binary incompatible with Miranda's
git-svn-id: http://svn.miranda-ng.org/main/trunk@743 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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)
|