summaryrefslogtreecommitdiff
path: root/plugins/Variables/parse_alias.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Variables/parse_alias.cpp')
-rw-r--r--plugins/Variables/parse_alias.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Variables/parse_alias.cpp b/plugins/Variables/parse_alias.cpp
index 49d7df3310..7f90e0eb04 100644
--- a/plugins/Variables/parse_alias.cpp
+++ b/plugins/Variables/parse_alias.cpp
@@ -189,11 +189,9 @@ static TCHAR *parseAddAlias(ARGUMENTSINFO *ai) {
_tcscat(szArgs, _T(","));
}
if ( (szArgs != NULL) && (argc > 0) ) {
-#ifdef UNICODE
+
szArgsA = u2a(szArgs);
-#else
- szArgsA = _strdup(szArgs);
-#endif
+
szHelp = ( char* )malloc(32 + strlen(szArgsA));
memset(szHelp, '\0', 32 + strlen(szArgsA));
sprintf(szHelp, "Alias\t(%s)\tuser defined", szArgsA);