diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-04-02 15:36:25 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-04-02 15:36:25 +0200 |
commit | 1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b (patch) | |
tree | 34333266e925b76a486ff465bac6b6cd01606dc8 /src/HTTPServer/HTTPConnection.cpp | |
parent | Fixed format string in HTTPConnection (diff) | |
download | cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar.gz cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar.bz2 cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar.lz cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar.xz cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar.zst cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.zip |
Diffstat (limited to 'src/HTTPServer/HTTPConnection.cpp')
-rw-r--r-- | src/HTTPServer/HTTPConnection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/HTTPServer/HTTPConnection.cpp b/src/HTTPServer/HTTPConnection.cpp index 6d238f028..44a3d3f88 100644 --- a/src/HTTPServer/HTTPConnection.cpp +++ b/src/HTTPServer/HTTPConnection.cpp @@ -144,7 +144,7 @@ void cHTTPConnection::Terminate(void) -void cHTTPConnection::DataReceived(const char * a_Data, int a_Size) +void cHTTPConnection::DataReceived(const char * a_Data, size_t a_Size) { switch (m_State) { @@ -181,9 +181,9 @@ void cHTTPConnection::DataReceived(const char * a_Data, int a_Size) } // Process the rest of the incoming data into the request body: - if (a_Size > (int)BytesConsumed) + if (a_Size > BytesConsumed) { - DataReceived(a_Data + BytesConsumed, a_Size - (int)BytesConsumed); + DataReceived(a_Data + BytesConsumed, a_Size - BytesConsumed); } else { |