GNOME Bluetooth: fix false (?) buffer overflow
From scan-build: size argument is greater than the free space in the destination buffer, for the line with strncat(). This might be a false positive in scan-build, the size looks right at first glance. To be on the safe side and get rid of the warning, allocate one one more byte...
This commit is contained in:
parent
46ded509e0
commit
7086ebcae8
|
@ -60,7 +60,7 @@ button_clicked (GtkButton *button, gpointer user_data)
|
|||
const char *bdaddr;
|
||||
pid_t midman;
|
||||
pid_t syncui;
|
||||
char args[sizeof (SYNCUI_ARG) + sizeof ("FF:FF:FF:FF:FF:FF") - 1];
|
||||
char args[sizeof (SYNCUI_ARG) + sizeof ("FF:FF:FF:FF:FF:FF")];
|
||||
|
||||
bdaddr = g_object_get_data (G_OBJECT (button), "bdaddr");
|
||||
midman = fork ();
|
||||
|
|
Loading…
Reference in New Issue