diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-31 07:57:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-31 07:57:03 +0000 |
commit | 34572133dc4f3b86f9a3cb9708aa0806f1cfded2 (patch) | |
tree | 2bed7c078dd39e6f45287302501332596525f309 /protocols/JabberG/src/jabber_misc.cpp | |
parent | f6eb47ba8c15005c274a98ab238dafc3f9676c6d (diff) |
fix for the temporary file types
git-svn-id: http://svn.miranda-ng.org/main/trunk@13927 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_misc.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_misc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_misc.cpp b/protocols/JabberG/src/jabber_misc.cpp index 21c686a724..06ddbe27ee 100644 --- a/protocols/JabberG/src/jabber_misc.cpp +++ b/protocols/JabberG/src/jabber_misc.cpp @@ -526,6 +526,8 @@ CMString CJabberProto::ExtractImage(HXML node) TCHAR tszTempPath[MAX_PATH], tszTempFile[MAX_PATH];
GetTempPath(_countof(tszTempPath), tszTempPath);
GetTempFileName(tszTempPath, _T("jab"), InterlockedIncrement(&g_nTempFileId), tszTempFile);
+ _tcsncat_s(tszTempFile, _T("."), 1);
+ _tcsncat_s(tszTempFile, image, image.GetLength());
HANDLE h = CreateFile(tszTempFile, GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, CREATE_ALWAYS,
|