Subject: CVS commit: src/usr.bin/vi/ex
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 09/27/2006 19:58:00
Module Name:	src
Committed By:	christos
Date:		Wed Sep 27 19:58:00 UTC 2006

Modified Files:
	src/usr.bin/vi/ex: ex_subst.c

Log Message:
Coverity CID 4171: bp can be null if len == 0. So check for it anyway and
don't call memcpy unconditionally.


To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 src/usr.bin/vi/ex/ex_subst.c

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