From ab661c6dc9aaf58db0d4d230463c533b961fc0f1 Mon Sep 17 00:00:00 2001 From: Josh Elsasser Date: Thu, 28 Sep 2006 01:40:51 +0000 Subject: [PATCH] Minor UPnP compatibility fixes. --- libtransmission/upnp.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libtransmission/upnp.c b/libtransmission/upnp.c index b4cb80025..705d3a310 100644 --- a/libtransmission/upnp.c +++ b/libtransmission/upnp.c @@ -1228,10 +1228,10 @@ soapRequest( int retry, const char * host, int port, const char * path, } tr_httpAddBody( http, "" +" xmlns:s=\"" SOAP_ENVELOPE "'\"" +" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">" " " -" ", action->name ); +" ", action->name ); va_start( ap, action ); do @@ -1269,7 +1269,8 @@ static void actionSetup( tr_upnp_action_t * action, const char * name, int prealloc ) { action->name = strdup( name ); - action->action = joinstrs( UPNP_SERVICE_TYPE, "#", name ); + action->action = NULL; + asprintf( &action->action, "\"%s#%s\"", UPNP_SERVICE_TYPE, name ); assert( NULL == action->args ); action->args = malloc( sizeof( *action->args ) * prealloc ); memset( action->args, 0, sizeof( *action->args ) * prealloc );