From 38a91fdaec887cfe9d081fd20dddc50e84dd4f99 Mon Sep 17 00:00:00 2001 From: "Nektarios K. Papadopoulos" Date: Thu, 21 Sep 2006 07:57:35 +0000 Subject: [PATCH] Applied patch from issue 12, reported by vinvin. Two calls to http_MakeMessage were broken from large file support introduced in r79 git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@86 119443c7-1b9e-41f8-b6fc-b9c35fce742c --- upnp/src/gena/gena_device.c | 2 +- upnp/src/soap/soap_ctrlpt.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/upnp/src/gena/gena_device.c b/upnp/src/gena/gena_device.c index 8c74483..f9b67c9 100644 --- a/upnp/src/gena/gena_device.c +++ b/upnp/src/gena/gena_device.c @@ -1167,7 +1167,7 @@ respond_ok( IN SOCKINFO * info, response.size_inc = 30; if( http_MakeMessage( &response, major, minor, "R" "D" "S" "N" "Xc" "ssc" "sc" "c", - HTTP_OK, 0, X_USER_AGENT, + HTTP_OK, (off_t)0, X_USER_AGENT, "SID: ", sub->sid, timeout_str ) != 0 ) { membuffer_destroy( &response ); error_respond( info, HTTP_INTERNAL_SERVER_ERROR, request ); diff --git a/upnp/src/soap/soap_ctrlpt.c b/upnp/src/soap/soap_ctrlpt.c index b54c9dc..09bbb39 100644 --- a/upnp/src/soap/soap_ctrlpt.c +++ b/upnp/src/soap/soap_ctrlpt.c @@ -650,7 +650,8 @@ SoapSendAction( IN char *action_url, // make request msg request.size_inc = 50; - if( http_MakeMessage( &request, 1, 1, "q" "N" "s" "sssbs" "U" "c" "bbb", SOAPMETHOD_POST, &url, xml_start_len + action_str_len + xml_end_len, // content-length + if( http_MakeMessage( &request, 1, 1, "q" "N" "s" "sssbs" "U" "c" "bbb", SOAPMETHOD_POST, &url, + (off_t)xml_start_len + action_str_len + xml_end_len, // content-length ContentTypeHeader, "SOAPACTION: \"", service_type, "#", name.buf, name.length, "\"\r\n", xml_start, xml_start_len,