From: Sergio Villar Senin Date: Fri, 15 Apr 2011 15:10:58 +0000 (+0200) Subject: soup_uri_to_string: print port numbers as unsigned integers X-Git-Tag: LIBSOUP_2_34_1~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a15b34ec9510263035cd2af3f9f38d36cfe77db;p=platform%2Fupstream%2Flibsoup.git soup_uri_to_string: print port numbers as unsigned integers soup_uri_to_string() was using the "%d" printf format but it should use "%u" instead as the port number is a guint in SoupURI. https://bugzilla.gnome.org/show_bug.cgi?id=647767 --- diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c index 539ff74..8d8f8a8 100644 --- a/libsoup/soup-uri.c +++ b/libsoup/soup-uri.c @@ -449,7 +449,7 @@ soup_uri_to_string (SoupURI *uri, gboolean just_path_and_query) } else append_uri_encoded (str, uri->host, ":/"); if (uri->port && uri->port != soup_scheme_default_port (uri->scheme)) - g_string_append_printf (str, ":%d", uri->port); + g_string_append_printf (str, ":%u", uri->port); if (!uri->path && (uri->query || uri->fragment)) g_string_append_c (str, '/'); }