Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.sbin/pkg_install/lib



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.




Home | Main Index | Thread Index | Old Index