summaryrefslogtreecommitdiff
path: root/plugins/Sessions/Src/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Sessions/Src/Utils.cpp')
-rw-r--r--plugins/Sessions/Src/Utils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Sessions/Src/Utils.cpp b/plugins/Sessions/Src/Utils.cpp
index 3a4271d942..8a738cd970 100644
--- a/plugins/Sessions/Src/Utils.cpp
+++ b/plugins/Sessions/Src/Utils.cpp
@@ -169,8 +169,7 @@ void AddInSessionOrder(MCONTACT hContact, int mode, int ordernum, int writemode)
int len = (int)strlen(pszBuffer);
len = (len == 0) ? 20 : len + 2;
char *temp = (char*)_alloca(len+1);
- ZeroMemory(temp, len+1);
- mir_snprintf(temp, len + 1, "%02u%s", ordernum, szValue);
+ mir_snprintf(temp, len+1, "%02u%s", ordernum, szValue);
db_set_s(hContact, MODNAME, "UserSessionsOrder", temp);
mir_free(pszBuffer);