Fix buffer overflows in the pnm and xpm loaders. http://secunia.com/secunia_research/2008-25/advisory/