From 8aebeeca820d48c4a126bc7670b4a558d73ed881 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 13 Sep 2013 16:23:06 +0000 Subject: bug fix: crash in ?directory? git-svn-id: http://svn.miranda-ng.org/main/trunk@6055 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/src/parse_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Variables/src/parse_system.cpp') 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++) { -- cgit v1.2.3