I question the correctness of the changes checked into 7.7 last night by Nilsson (CVS comment "No longer allocate unused space for terminating char."). The +1 was not intended for accomodating a terminating character but to make sure zero-sized images get handled correctly in case malloc(0) returns NULL.