CVS commit: pkgsrc/pkgtools/pkg_install/files/lib

Module Name: pkgsrc
Committed By: joerg
Date: Thu Oct 22 22:51:29 UTC 2009
Modified Files:
pkgsrc/pkgtools/pkg_install/files/lib: pkgdb.c version.h
Log Message:
pkg_install-20091022:
Do not overwrite a string with itself using snprintf. This breaks
setting the pkgdb directory internally on Linux. Explicitly check
if the string is the same and otherwise just use xstrdup.
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 pkgsrc/pkgtools/pkg_install/files/lib/pkgdb.c
cvs rdiff -u -r1.141 -r1.142 pkgsrc/pkgtools/pkg_install/files/lib/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.