idevicedebug: Fix invalid write due to out of bounds access