From 965beb37dede0ac0f6e1be961acfbc15ee7e46cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 1 Apr 2024 21:08:52 +0200 Subject: core: fix print of pointer values --- src/plugins/buflist/buflist-mouse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/buflist/buflist-mouse.c') diff --git a/src/plugins/buflist/buflist-mouse.c b/src/plugins/buflist/buflist-mouse.c index 5f349d29d..087a618c6 100644 --- a/src/plugins/buflist/buflist-mouse.c +++ b/src/plugins/buflist/buflist-mouse.c @@ -155,8 +155,7 @@ end: } /* add pointer and plugin name */ - snprintf (str_value, sizeof (str_value), - "0x%lx", (unsigned long)ptr_buffer); + snprintf (str_value, sizeof (str_value), "%p", ptr_buffer); weechat_hashtable_set (info, "pointer", str_value); weechat_hashtable_set (info, "plugin", weechat_buffer_get_string (ptr_buffer, "plugin")); -- cgit v1.2.3