1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +02:00

core, plugins: replace "%lx" by "%p" in calls to sscanf

This commit is contained in:
Sébastien Helleu
2024-06-14 17:59:02 +02:00
parent ce79d218a4
commit e64ab3c675
21 changed files with 62 additions and 91 deletions
+1 -4
View File
@@ -39,7 +39,6 @@ script_mouse_focus_chat_cb (const void *pointer, void *data,
{
const char *buffer;
int rc;
unsigned long value;
struct t_gui_buffer *ptr_buffer;
long x;
char *error, str_date[64];
@@ -57,12 +56,10 @@ script_mouse_focus_chat_cb (const void *pointer, void *data,
if (!buffer)
return info;
rc = sscanf (buffer, "%lx", &value);
rc = sscanf (buffer, "%p", &ptr_buffer);
if ((rc == EOF) || (rc == 0))
return info;
ptr_buffer = (struct t_gui_buffer *)value;
if (!ptr_buffer || (ptr_buffer != script_buffer))
return info;