--- dbus-sysdeps-unix.c.orig	Tue Jan  2 01:46:07 2007
+++ dbus-sysdeps-unix.c	Tue Jan  2 01:47:57 2007
@@ -1293,6 +1293,7 @@
         gid_t *new = dbus_realloc (buf, buf_count * sizeof (buf[0]));
         if (new == NULL)
           {
+	    buf_count = getgroups(0,NULL)+1;
             dbus_set_error (error, DBUS_ERROR_NO_MEMORY, NULL);
             dbus_free (buf);
             goto failed;
