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/Version.h | 2 +- plugins/Variables/src/parse_system.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Variables/src') diff --git a/plugins/Variables/src/Version.h b/plugins/Variables/src/Version.h index 374b0f1579..c59bac5cba 100644 --- a/plugins/Variables/src/Version.h +++ b/plugins/Variables/src/Version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 2 #define __RELEASE_NUM 3 -#define __BUILD_NUM 9 +#define __BUILD_NUM 10 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM 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