Fix buffer overflow readdir devfs.