diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-11 18:38:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-11 18:38:15 +0000 |
commit | 27c63813af1433d827335b5d1d34c2b70eddeb6b (patch) | |
tree | 00c17e3d2e4c378a99dbdb5655039aced63430c4 /src/modules/netlib/netlibupnp.cpp | |
parent | 6651124419887cafa9b3ecda6a3e479a477e4077 (diff) |
strcpy() calls replaced with strncpy_s()
git-svn-id: http://svn.miranda-ng.org/main/trunk@12772 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/netlib/netlibupnp.cpp')
-rw-r--r-- | src/modules/netlib/netlibupnp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/netlib/netlibupnp.cpp b/src/modules/netlib/netlibupnp.cpp index 4e6813b8c9..513aafaa55 100644 --- a/src/modules/netlib/netlibupnp.cpp +++ b/src/modules/netlib/netlibupnp.cpp @@ -343,7 +343,8 @@ retrycon: break;
}
}
- strcpy(szConnHost, szHost); sConnPort = sPort;
+ strncpy_s(szConnHost, szHost, _TRUNCATE);
+ sConnPort = sPort;
}
if (send(sock, szData, sz, 0) != SOCKET_ERROR) {
|