From 2a815f8820ca402626bd283dd5b75744ddeb9812 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 23 May 2015 18:55:59 +0000 Subject: mir_tstrncpy <> _tcsncpy git-svn-id: http://svn.miranda-ng.org/main/trunk@13791 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen_p2p_old.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Tlen/src/tlen_p2p_old.cpp') diff --git a/protocols/Tlen/src/tlen_p2p_old.cpp b/protocols/Tlen/src/tlen_p2p_old.cpp index 51499497f3..cb72d33849 100644 --- a/protocols/Tlen/src/tlen_p2p_old.cpp +++ b/protocols/Tlen/src/tlen_p2p_old.cpp @@ -334,7 +334,7 @@ static HANDLE TlenP2PBindSocks4(SOCKSBIND * sb, TLEN_FILE_TRANSFER *ft) return NULL; } in.S_un.S_addr = *(PDWORD)(buf+4); - mir_strncpy(sb->szHost, inet_ntoa(in), sizeof(sb->szHost)-1); + strncpy(sb->szHost, inet_ntoa(in), sizeof(sb->szHost)-1); sb->wPort = htons(*(PWORD)(buf+2)); ft->s = s; forkthread((void (__cdecl *)(void*))TlenFileBindSocks4Thread, 0, ft); @@ -463,11 +463,11 @@ HANDLE TlenP2PListen(TLEN_FILE_TRANSFER *ft) if (db_get_b(NULL, proto->m_szModuleName, "FileProxyAuth", FALSE)) { sb.useAuth = TRUE; if (!db_get_s(NULL, proto->m_szModuleName, "FileProxyUsername", &dbv)) { - mir_strncpy(sb.szUser, dbv.pszVal, sizeof(sb.szUser)-1); + strncpy(sb.szUser, dbv.pszVal, sizeof(sb.szUser)-1); db_free(&dbv); } if (!db_get_s(NULL, proto->m_szModuleName, "FileProxyPassword", &dbv)) { - mir_strncpy(sb.szPassword, dbv.pszVal, sizeof(sb.szPassword)-1); + strncpy(sb.szPassword, dbv.pszVal, sizeof(sb.szPassword)-1); db_free(&dbv); } } -- cgit v1.2.3