Minor fix: avoid including NUL in device path.