diff options
Diffstat (limited to 'plugins/Variables/src/parse_system.cpp')
-rw-r--r-- | plugins/Variables/src/parse_system.cpp | 2 |
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++)
{
|