aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/server/rtspd.c2
-rw-r--r--tests/server/sws.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/rtspd.c b/tests/server/rtspd.c
index f751f1153..5c06729ea 100644
--- a/tests/server/rtspd.c
+++ b/tests/server/rtspd.c
@@ -798,7 +798,7 @@ static int get_request(curl_socket_t sock, struct httprequest *req)
while(!done_processing && (req->offset < REQBUFSIZ-1)) {
if(pipereq_length && pipereq) {
memmove(reqbuf, pipereq, pipereq_length);
- got = pipereq_length;
+ got = curlx_uztosz(pipereq_length);
pipereq_length = 0;
}
else {
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 65a61c2ce..fb54c209b 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -762,7 +762,7 @@ static int get_request(curl_socket_t sock, struct httprequest *req)
while(!done_processing && (req->offset < REQBUFSIZ-1)) {
if(pipereq_length && pipereq) {
memmove(reqbuf, pipereq, pipereq_length);
- got = pipereq_length;
+ got = curlx_uztosz(pipereq_length);
pipereq_length = 0;
}
else {