From fc3a4607ee5cfe9e7cfed8d63e2cb1d549f61d92 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Sep 2014 14:06:14 +0000 Subject: _tcsncpy -> _tcsncpy_s; strncpy -> strncpy_s git-svn-id: http://svn.miranda-ng.org/main/trunk@10557 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/JabberG/src/jabber_file.cpp') diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp index 1594f0e574..d9b5fa568b 100644 --- a/protocols/JabberG/src/jabber_file.cpp +++ b/protocols/JabberG/src/jabber_file.cpp @@ -95,7 +95,7 @@ int CJabberProto::FileReceiveParse(filetransfer *ft, char* buffer, int datalen) for (q=p; q+1state == FT_CONNECTING) { @@ -362,7 +362,7 @@ int CJabberProto::FileSendParse(JABBER_SOCKET s, filetransfer *ft, char* buffer, ft->state = FT_ERROR; break; } - strncpy(str, p, q-p); + strncpy_s(str, q - p, p, _TRUNCATE); str[q-p] = '\0'; debugLogA("FT Got: %s", str); if (ft->state == FT_CONNECTING) { -- cgit v1.2.3