/pidgin/main: b8f3613c8673: http: Use %.*s to debug print a non-...

Youness Alaoui kakaroto at kakaroto.homelinux.net
Mon Jul 18 00:33:09 EDT 2016

Changeset: b8f3613c8673b11abf88e5a04a9c122cb1905722
Author:	 Youness Alaoui <kakaroto at kakaroto.homelinux.net>
Date:	 2016-07-08 16:20 -0400
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/b8f3613c8673


http: Use %.*s to debug print a non-null terminated string

This is in relation to PR 70 which changed a g_strdup into a g_memdup


 libpurple/util.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/util.c b/libpurple/util.c
--- a/libpurple/util.c
+++ b/libpurple/util.c
@@ -4087,7 +4087,7 @@ url_fetch_send_cb(gpointer data, gint so
-		purple_debug_misc("util", "Request: '%s'\n", gfud->request);
+		purple_debug_misc("util", "Request: '%.*s'\n", (int) gfud->request_len, gfud->request);
 		purple_debug_misc("util", "request constructed\n");

More information about the Commits mailing list