Correct the end address of the memory regions.

Pointed out by:	ian