Subject: CVS commit: src/usr.bin/vi/vi
To: None <source-changes@netbsd.org>
From: Aymeric Vincent <aymeric@netbsd.org>
List: source-changes
Date: 06/06/2003 08:06:48
Module Name:	src
Committed By:	aymeric
Date:		Fri Jun  6 08:06:47 UTC 2003

Modified Files:
	src/usr.bin/vi/vi: v_txt.c

Log Message:
When an error occurs in v_txt(), leave input mode too.
Otherwise, (among other things) db_get() thinks it can re-use the TEXT buffers
when it's not true, leading to a crash because that TEXT buffer will be
released just before it is actually used to create a new one.
This fixes PR#21797.


To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 src/usr.bin/vi/vi/v_txt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.