summaryrefslogtreecommitdiff
path: root/src/plugins/buflist/buflist-mouse.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-01 21:08:52 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-01 21:08:52 +0200
commit965beb37dede0ac0f6e1be961acfbc15ee7e46cf (patch)
tree428ff5cb61b17b8de339316e65ed4a70aea10dca /src/plugins/buflist/buflist-mouse.c
parenta7c92e2d2471c1442c65e5ea95a7dce8061f5784 (diff)
downloadweechat-965beb37dede0ac0f6e1be961acfbc15ee7e46cf.zip
core: fix print of pointer values
Diffstat (limited to 'src/plugins/buflist/buflist-mouse.c')
-rw-r--r--src/plugins/buflist/buflist-mouse.c3
1 files changed, 1 insertions, 2 deletions
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"));