copy the device name with correct buffer size