diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-01 21:08:52 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-01 21:08:52 +0200 |
commit | 965beb37dede0ac0f6e1be961acfbc15ee7e46cf (patch) | |
tree | 428ff5cb61b17b8de339316e65ed4a70aea10dca /src/plugins/buflist/buflist-mouse.c | |
parent | a7c92e2d2471c1442c65e5ea95a7dce8061f5784 (diff) | |
download | weechat-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.c | 3 |
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")); |