[libsoup] soup_uri_to_string: print port numbers as unsigned integers
- From: Sergio Villar Senin <svillar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup_uri_to_string: print port numbers as unsigned integers
- Date: Fri, 15 Apr 2011 15:12:32 +0000 (UTC)
commit 7a15b34ec9510263035cd2af3f9f38d36cfe77db
Author: Sergio Villar Senin <svillar igalia com>
Date: Fri Apr 15 17:10:58 2011 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
---
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, '/');
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]