------- Additional Comments From dje at gcc dot gnu dot org 2005-07-11 22:02 ------- I'm pretty sure the problem is the line
p = scratch + sizeof (SCRATCH_SIZE) - 1; SCRATCH_SIZE is the size of the buffer. sizeof (SCRATCH_SIZE) probably is not what the author meant. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22412