Subject: CVS commit: src/usr.sbin/pkg_install/lib
To: None <source-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: source-changes
Date: 09/08/2003 06:41:24
Module Name:	src
Committed By:	jlam
Date:		Mon Sep  8 06:41:24 UTC 2003

Modified Files:
	src/usr.sbin/pkg_install/lib: pkgdb.c

Log Message:
strlen(pkgname) only returns the number of characters preceding the NUL,
but the size of the data field in the pkgdb.byfile.db file is the length of
the string plus 1 for the NUL.  Fix this check so that removing all of the
files belonging to pkgname from pkgdb.byfile.db works again.


To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 src/usr.sbin/pkg_install/lib/pkgdb.c

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