Patch device.cxx to fix strncpy use.