summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-02 05:19:23 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-02 05:19:23 +0000
commit114f83d5d8a73b3f1435e09b1d91aff843e4ce15 (patch)
tree0805188bf6bcf5749d1e76d5d1e73ccb6cf41cc4 /plugins/CrashDumper
parent6e2b6b31bae6d69bff5271451e73eb08637b8118 (diff)
mir_snprintf(..., "%s", ...) -> strncpy_s(...)
build fix to prevous commit git-svn-id: http://svn.miranda-ng.org/main/trunk@11212 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper')
-rw-r--r--plugins/CrashDumper/src/upload.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/CrashDumper/src/upload.cpp b/plugins/CrashDumper/src/upload.cpp
index 7b1d2350aa..fccdc858ce 100644
--- a/plugins/CrashDumper/src/upload.cpp
+++ b/plugins/CrashDumper/src/upload.cpp
@@ -40,10 +40,10 @@ void GetLoginStr(char* user, size_t szuser, char* pass)
DBVARIANT dbv;
if (db_get_s(NULL, PluginName, "Username", &dbv) == 0) {
- mir_snprintf(user, szuser, "%s", dbv.pszVal);
+ strncpy_s(user, szuser, dbv.pszVal, _TRUNCATE);
db_free(&dbv);
- }
- else user[0] = 0;
+ } else
+ user[0] = 0;
if (db_get_s(NULL, PluginName, "Password", &dbv) == 0) {
BYTE hash[16];
@@ -56,8 +56,8 @@ void GetLoginStr(char* user, size_t szuser, char* pass)
arrayToHex(hash, sizeof(hash), pass);
db_free(&dbv);
- }
- else pass[0] = 0;
+ } else
+ pass[0] = 0;
}
void OpenAuthUrl(const char* url)