summaryrefslogtreecommitdiff
path: root/sysutils/psmisc/Makefile
diff options
context:
space:
mode:
authormcf <mcf@pkgsrc.org>2020-10-06 00:19:05 +0000
committermcf <mcf@pkgsrc.org>2020-10-06 00:19:05 +0000
commitbc8bd962121ad30336836819c98503d340463f18 (patch)
treea3bac7576b750565d164647a820878b4188ccddd /sysutils/psmisc/Makefile
parent6df65bb4f392d7bdd6f8c4af8748d36a3260ae69 (diff)
downloadpkgsrc-bc8bd962121ad30336836819c98503d340463f18.tar.gz
psmisc: fix sscanf usage bug under musl libc
C99 says that the %15c conversion specifier matches *exactly* 15 characters, so if the process name is shorter than 15 characters, it is not matched and 0 is returned. Some implementations (such as glibc) return a match, even with fewer characters than the field width, but this cannot be assumed. Instead, use %15[^)], as in upstream commit [0], which matches a non-empty sequence of characters other than ')'. [0] https://gitlab.com/psmisc/psmisc/-/commit/ca2b176889729a7347bd95b832b9a5bb39fec229
Diffstat (limited to 'sysutils/psmisc/Makefile')
-rw-r--r--sysutils/psmisc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/psmisc/Makefile b/sysutils/psmisc/Makefile
index 37e7794e3df..c87aefe16cd 100644
--- a/sysutils/psmisc/Makefile
+++ b/sysutils/psmisc/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.32 2020/03/20 11:58:22 nia Exp $
+# $NetBSD: Makefile,v 1.33 2020/10/06 00:19:05 mcf Exp $
DISTNAME= psmisc-20.1
CATEGORIES= sysutils
-PKGREVISION= 3
+PKGREVISION= 4
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=psmisc/}
MAINTAINER= pkgsrc-users@NetBSD.org