2006/11/9, Adrian Thurston <thurs... at cs.queensu.ca>: > > pe = p + strlen(p) + 1; > > This is probably why. The +1 sends the machine the null character Well, replacing the statement by: pe = p + strlen(p); changes nothing. And my statement came from the manual, figure 2.1.