1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

core, plugins: return "0x0" instead of "(nil)" for pointers formatted in strings

This is a partial revert of the commit
965beb37de.
This commit is contained in:
Sébastien Helleu
2024-06-22 08:54:08 +02:00
parent a75a947f5f
commit bdfa1bd51c
21 changed files with 65 additions and 42 deletions
+1 -1
View File
@@ -512,7 +512,7 @@ plugin_api_info_buffer_cb (const void *pointer, void *data,
if (!ptr_buffer)
return NULL;
snprintf (value, sizeof (value), "%p", ptr_buffer);
snprintf (value, sizeof (value), "0x%lx", (unsigned long)ptr_buffer);
return strdup (value);
}