Also, correct an %x to be %lx. Reviewed by: phk
memory with malloc(9) using a few tricks to save space on the way.