summaryrefslogtreecommitdiff
path: root/plugins/FlashAvatars
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FlashAvatars')
-rw-r--r--plugins/FlashAvatars/src/cflash.cpp4
-rw-r--r--plugins/FlashAvatars/src/stdafx.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/FlashAvatars/src/cflash.cpp b/plugins/FlashAvatars/src/cflash.cpp
index 25dcfb5856..87961b5c0b 100644
--- a/plugins/FlashAvatars/src/cflash.cpp
+++ b/plugins/FlashAvatars/src/cflash.cpp
@@ -182,7 +182,7 @@ static void __cdecl loadFlash_Thread(void *p) {
}
CreateDirectory(path, NULL); // create directory if it doesn't exist
- _sntprintf(name, MAX_PATH, _T("%s\\%s.swf"), path, th.toBase32(tth));
+ mir_sntprintf(name, MAX_PATH, _T("%s\\%s.swf"), path, th.toBase32(tth));
// download remote file if it doesn't exist
if (GetFileAttributes(name) == 0xFFFFFFFF) {
@@ -446,7 +446,7 @@ static INT_PTR setBkColor(WPARAM wParam, LPARAM lParam)
IShockwaveFlash* flash = item->pFlash;
char buf[10];
- _snprintf(buf, sizeof(buf), "%02X%02X%02X", LOBYTE(LOWORD(clr)), HIBYTE(LOWORD(clr)), LOBYTE(HIWORD(clr)));
+ mir_snprintf(buf, sizeof(buf), "%02X%02X%02X", LOBYTE(LOWORD(clr)), HIBYTE(LOWORD(clr)), LOBYTE(HIWORD(clr)));
flash->put_BGColor(_bstr_t(buf));
}
return 0;
diff --git a/plugins/FlashAvatars/src/stdafx.h b/plugins/FlashAvatars/src/stdafx.h
index fb175de920..f571759135 100644
--- a/plugins/FlashAvatars/src/stdafx.h
+++ b/plugins/FlashAvatars/src/stdafx.h
@@ -58,7 +58,7 @@ inline void _cdecl debugTrace(const char* format, ...)
char buf[512];
- _vsnprintf(buf, sizeof(buf), format, args);
+ mir_vsnprintf(buf, sizeof(buf), format, args);
OutputDebugStringA(buf);
va_end(args);
}