summaryrefslogtreecommitdiff
path: root/protocols/Yahoo/avatar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Yahoo/avatar.cpp')
-rw-r--r--protocols/Yahoo/avatar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Yahoo/avatar.cpp b/protocols/Yahoo/avatar.cpp
index ad798ed687..254acfd07f 100644
--- a/protocols/Yahoo/avatar.cpp
+++ b/protocols/Yahoo/avatar.cpp
@@ -249,7 +249,7 @@ void __cdecl CYahooProto::recv_avatarthread(void *pavt)
AI.cbSize = sizeof AI;
AI.format = PA_FORMAT_PNG;
AI.hContact = hContact;
- WideCharToMultiByte( CP_ACP, 0, buf, -1, AI.filename, sizeof AI.filename, 0, 0 );
+ _tcsncpy(AI.filename, buf, SIZEOF(AI.filename));
if (error)
SetDword(hContact, "PictCK", 0);