summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/parse_system.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-13 16:23:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-13 16:23:06 +0000
commit8aebeeca820d48c4a126bc7670b4a558d73ed881 (patch)
tree71d9528bc084a8154eead37e36271a52ffdde4c5 /plugins/Variables/src/parse_system.cpp
parentd798b8a8f1571fc2710288a7aa0d4ac0e3a24331 (diff)
bug fix: crash in ?directory?
git-svn-id: http://svn.miranda-ng.org/main/trunk@6055 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/src/parse_system.cpp')
-rw-r--r--plugins/Variables/src/parse_system.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Variables/src/parse_system.cpp b/plugins/Variables/src/parse_system.cpp
index 69053bba1b..8cf00a28af 100644
--- a/plugins/Variables/src/parse_system.cpp
+++ b/plugins/Variables/src/parse_system.cpp
@@ -167,7 +167,7 @@ static TCHAR *parseDirectory(ARGUMENTSINFO *ai) {
depth = ttoi(ai->targv[2]);
if (depth <= 0)
- return ai->targv[1];
+ return mir_tstrdup(ai->targv[1]);
for (ei = 0; ei < _tcslen(ai->targv[1]); ei++)
{