diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-02 18:35:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-02 18:35:56 +0000 |
commit | 11822f442f96b074e5e39bd4cc14d277205a9307 (patch) | |
tree | 8257ab929e3f2d5e626f693ca13c90b50aa196f0 /protocols/WhatsApp/src/contacts.cpp | |
parent | 329ad84fa5b5a813b032f416e959eb2b0bb3582e (diff) |
first version of Wassup that compiles
git-svn-id: http://svn.miranda-ng.org/main/trunk@4863 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/contacts.cpp')
-rw-r--r-- | protocols/WhatsApp/src/contacts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/contacts.cpp b/protocols/WhatsApp/src/contacts.cpp index 5f1ae75a67..337e62cc9e 100644 --- a/protocols/WhatsApp/src/contacts.cpp +++ b/protocols/WhatsApp/src/contacts.cpp @@ -334,7 +334,7 @@ void WhatsAppProto::onSendGetPicture(const std::string& jid, const std::vector<u CallService(MS_UTILS_CREATEDIRTREET, 0, (LPARAM)filename.c_str());
filename = filename + _T("\\") + (TCHAR*) _A2T(jid.c_str()) + _T("-") + (TCHAR*) _A2T(newId.c_str()) +_T(".jpg");
FILE *f = _tfopen(filename.c_str(), _T("wb"));
- int r = fwrite(std::string(data.begin(), data.end()).c_str(), 1, data.size(), f);
+ int r = (int)fwrite(std::string(data.begin(), data.end()).c_str(), 1, data.size(), f);
fclose(f);
PROTO_AVATAR_INFORMATIONT ai = {sizeof(ai)};
|