pkgsrc/sysutils/psmisc
mcf 674af5d4ca 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] ca2b176889
2020-10-06 00:19:05 +00:00
..
patches psmisc: fix sscanf usage bug under musl libc 2020-10-06 00:19:05 +00:00
DESCR
distinfo psmisc: fix sscanf usage bug under musl libc 2020-10-06 00:19:05 +00:00
Makefile psmisc: fix sscanf usage bug under musl libc 2020-10-06 00:19:05 +00:00
MESSAGE
PLIST