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:
Patrick Ohly 2014-01-08 06:28:15 -08:00
parent 46ded509e0
commit 7086ebcae8
1 changed files with 1 additions and 1 deletions

View File

@ -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 ();