Compare pointers not contents.

Before we were dereferencing off the end of the array and comparing the contents.
The check itself though was really just to see if we're calculated the extent of the array correctly so instead we should just compare the addresses of the pointers.

@lwho or @jpab I don't have a working Linux machine right now so can't check other platforms.