From db47dabaddfab41eb418eebfecac0ad3c841b8f0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 30 Mar 2013 11:30:57 +0000 Subject: removed not used headers git-svn-id: http://svn.miranda-ng.org/main/trunk@4248 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AvatarHistory/src/AvatarHistory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/AvatarHistory/src/AvatarHistory.cpp') diff --git a/plugins/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp index 5248c3f1a1..4087b1fec5 100644 --- a/plugins/AvatarHistory/src/AvatarHistory.cpp +++ b/plugins/AvatarHistory/src/AvatarHistory.cpp @@ -181,7 +181,7 @@ static int AvatarChanged(WPARAM wParam, LPARAM lParam) TCHAR *file = GetCachedAvatar(proto, hash); if (file != NULL) { - lstrcpyn(history_filename, file, MAX_REGS(history_filename)); + lstrcpyn(history_filename, file, SIZEOF(history_filename)); mir_free(file); } else { @@ -190,7 +190,7 @@ static int AvatarChanged(WPARAM wParam, LPARAM lParam) else GetProtocolFolder(history_filename, proto); - mir_sntprintf(history_filename, MAX_REGS(history_filename), + mir_sntprintf(history_filename, SIZEOF(history_filename), _T("%s\\%s"), history_filename, hash); if (CopyImageFile(avatar->filename, history_filename)) @@ -242,7 +242,7 @@ static int PreShutdown(WPARAM wParam, LPARAM lParam) static int ModulesLoaded(WPARAM wParam, LPARAM lParam) { - mir_sntprintf(basedir, MAX_REGS(basedir), _T("%s\\Avatars History"), profilePath); + mir_sntprintf(basedir, SIZEOF(basedir), _T("%s\\Avatars History"), profilePath); hFolder = FoldersRegisterCustomPathT( LPGEN("Avatars"), LPGEN("Avatar History"), PROFILE_PATHT _T("\\") CURRENT_PROFILET _T("\\Avatars History")); -- cgit v1.2.3