From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7359f04904110913366d96bc93@mail.gmail.com> Date: Tue, 9 Nov 2004 13:36:00 -0800 From: Rob Pike To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] acme bug In-Reply-To: <2bb38827333b1cce3a88e9c7837bd1b3@vitanuova.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200410192035.i9JKZRt24091@plg2.math.uwaterloo.ca> <2bb38827333b1cce3a88e9c7837bd1b3@vitanuova.com> Topicbox-Message-UUID: 00580e04-eace-11e9-9e20-41e7f4b1d025 This one is easy. In src/cmd/acme/edit.c, after the line in collecttext() that reads s->r[s->n-2] = '\0'; add a line s->n -= 2; Sam has zero-terminated strings, acme doesn't. This was a porting bug. This needs fixing in Plan 9 as well as plan9port. -rob