diff options
| author | Pieter Wuille <[email protected]> | 2014-09-09 16:39:35 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-09 16:43:06 +0200 |
| commit | 1575c5171fac4f3e4f3d0794ed0312a17be6d7f1 (patch) | |
| tree | a7f34e8c2c5aba8fbb00ab3da26376f609acec22 /src/netbase.cpp | |
| parent | Merge pull request #4873 (diff) | |
| parent | Remove some unnecessary c_strs() in logging and the GUI (diff) | |
| download | archived-discoin-1575c5171fac4f3e4f3d0794ed0312a17be6d7f1.tar.xz archived-discoin-1575c5171fac4f3e4f3d0794ed0312a17be6d7f1.zip | |
Merge pull request #4868
2c2cc5d Remove some unnecessary c_strs() in logging and the GUI (Philip Kaufmann)
f7d0a86 netbase: Use .data() instead of .c_str() on binary string (Wladimir J. van der Laan)
Diffstat (limited to 'src/netbase.cpp')
| -rw-r--r-- | src/netbase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp index d5821d446..954c11f77 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -259,7 +259,7 @@ bool static Socks5(string strDest, int port, SOCKET& hSocket) strSocks5 += strDest; strSocks5 += static_cast<char>((port >> 8) & 0xFF); strSocks5 += static_cast<char>((port >> 0) & 0xFF); - ret = send(hSocket, strSocks5.c_str(), strSocks5.size(), MSG_NOSIGNAL); + ret = send(hSocket, strSocks5.data(), strSocks5.size(), MSG_NOSIGNAL); if (ret != (ssize_t)strSocks5.size()) { CloseSocket(hSocket); |