--- ../orig/bluez-utils-2.4/hcid/security.c 2003-07-24 19:34:34.000000000 +0200 +++ hcid/security.c 2004-02-21 16:22:01.278360248 +0100 @@ -354,7 +354,8 @@ gboolean io_security_event(GIOChannel *chan, GIOCondition cond, gpointer data) { - char buf[HCI_MAX_EVENT_SIZE], *ptr = buf; + char *buf = malloc(sizeof(char) * HCI_MAX_EVENT_SIZE); + char *ptr = buf; struct hci_dev_info *di = (void *) data; int len, type, dev; hci_event_hdr *eh;