]> granicus.if.org Git - procps-ng/commit
0023-skill: Fix getline() usage.
authorQualys Security Advisory <qsa@qualys.com>
Thu, 1 Jan 1970 00:00:00 +0000 (00:00 +0000)
committerCraig Small <csmall@enc.com.au>
Sat, 23 Jun 2018 11:59:14 +0000 (21:59 +1000)
commitfa7ea000ce636c8039f99135dc4688e28031f0fe
treec998e282f49614f694d0c1ab37d56691e5a61f09
parentc704460c7df4b84e68f065c58f11c5782a0d0b4b
0023-skill: Fix getline() usage.

man getline: "If *lineptr is set to NULL and *n is set 0 before the
call, then getline() will allocate a buffer for storing the line. This
buffer should be freed by the user program even if getline() failed."
skill.c