From 3269d992874ed50b3e07ea7aff19d2c20cd309a2 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Thu, 5 May 2011 20:41:09 +0000 Subject: [PATCH] (trunk libT) experimental fix for the unterminated announce URLs reported by blacklion in the forums --- libtransmission/web.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/web.c b/libtransmission/web.c index a9e5f6418..74ece1139 100644 --- a/libtransmission/web.c +++ b/libtransmission/web.c @@ -519,7 +519,7 @@ tr_http_escape( struct evbuffer * out, || ( ( 'A' <= *str ) && ( *str <= 'Z' ) ) || ( ( 'a' <= *str ) && ( *str <= 'z' ) ) || ( ( *str == '/' ) && ( !escape_slashes ) ) ) - evbuffer_add( out, str, 1 ); + evbuffer_add_printf( out, "%c", *str ); else evbuffer_add_printf( out, "%%%02X", (unsigned)(*str&0xFF) ); }