hotplug.c: Make sure hotplug buffer is NULL terminated