From 7a15b34ec9510263035cd2af3f9f38d36cfe77db Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Fri, 15 Apr 2011 17:10:58 +0200 Subject: [PATCH] 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 --- libsoup/soup-uri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '/'); } -- 2.7.4