diff options
author | George Hazan <george.hazan@gmail.com> | 2014-11-03 20:12:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-11-03 20:12:09 +0000 |
commit | 4410ef2dede8ef2df794e877b59f656e32c6bc39 (patch) | |
tree | 7baca38422318a3d50149dc179963fc80291ab24 /plugins/Sessions/Src/Utils.cpp | |
parent | 3884b938b660d4809139826d3a93c0ff38d18f99 (diff) |
more code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@10913 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Sessions/Src/Utils.cpp')
-rw-r--r-- | plugins/Sessions/Src/Utils.cpp | 3 |
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);
|