Fix segfault on i386 and powerpc64

Reported by:	hrs, adrian
Tested by:	hrs