resource-dbus: fix a buffer overflow.