It seems to happen that the last element in the array of struct options isn't all-null bytes. Be a bit more discerning