summaryrefslogtreecommitdiff
path: root/plugins/AvatarHistory/src
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-04-19 19:01:21 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-04-19 19:01:21 +0000
commit4469c87bad5e857c873b7bc47fd8daa6a326b37a (patch)
tree8a7f298186d94e57dbc61eaf5e2d2bdec8b47faa /plugins/AvatarHistory/src
parent8693cdaf8d4e1082e5cdfdb2081903dceeb07c3f (diff)
FIX: the contacts UIN wasn't checked for illegal chars
git-svn-id: http://svn.miranda-ng.org/main/trunk@4477 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AvatarHistory/src')
-rw-r--r--plugins/AvatarHistory/src/utils.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/AvatarHistory/src/utils.cpp b/plugins/AvatarHistory/src/utils.cpp
index 7a1148e9c4..5d91ab94ab 100644
--- a/plugins/AvatarHistory/src/utils.cpp
+++ b/plugins/AvatarHistory/src/utils.cpp
@@ -140,15 +140,14 @@ TCHAR* GetProtocolFolder(TCHAR *fn, char *proto)
TCHAR* GetContactFolder(TCHAR *fn, HANDLE hContact)
{
- TCHAR uin[MAX_PATH];
-
char *proto = GetContactProto(hContact);
GetProtocolFolder(fn, proto);
+ TCHAR uin[MAX_PATH];
GetUIDFromHContact(hContact, uin, SIZEOF(uin));
+ ConvertToFilename(uin, sizeof(uin)); //added so that weather id's like "yw/CI0000" work
mir_sntprintf(fn, MAX_PATH, _T("%s\\%s"), fn, uin);
CreateDirectoryTreeT(fn);
- ConvertToFilename(uin, sizeof(uin)); //added so that weather id's like "yw/CI0000" work
#ifdef DBGPOPUPS
TCHAR log[1024];