* src/pic/device.c (find_device): prevent buffer underflow error