From 4410ef2dede8ef2df794e877b59f656e32c6bc39 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 3 Nov 2014 20:12:09 +0000 Subject: more code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@10913 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Sessions/Src/Utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/Sessions/Src/Utils.cpp') 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); -- cgit v1.2.3