Path to this page:
Subject: CVS commit: pkgsrc
From: Taylor R Campbell
Date: 2024-01-26 13:40:04
Message id: 20240126124004.EE106FA42@cvs.NetBSD.org
Log Message:
pkg_install: Fix mistake in previous: this is strchr, not strchrnul.
Either
if ((q = strchr(p, '/')) == NULL)
or
if (*(q = strchrnul(p, '/')) == '\0')
will work, but not
if (*(q = strchr(p, '/')) == '\0')
which will crash with a null pointer dereference. Let's get the
right version of this committed, not the wrong one! Oops.
While here, reset PKGREVISION like I meant to do yesterday.
Files: