mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Fixed #120
This commit is contained in:
parent
a8b202a8b9
commit
8d908fadb6
1 changed files with 1 additions and 1 deletions
|
@ -1490,7 +1490,7 @@ inline std::string SocketStream::get_remote_addr() const {
|
|||
// Buffer stream implementation
|
||||
inline int BufferStream::read(char* ptr, size_t size)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||
return static_cast<int>(buffer._Copy_s(ptr, size, size));
|
||||
#else
|
||||
return static_cast<int>(buffer.copy(ptr, size));
|
||||
|
|
Loading…
Reference in a new issue