]> granicus.if.org Git - procps-ng/commit
pgrep: Fix off by one error in line check
authorCraig Small <csmall@enc.com.au>
Sun, 11 Sep 2016 00:11:25 +0000 (10:11 +1000)
committerCraig Small <csmall@enc.com.au>
Sun, 11 Sep 2016 00:11:25 +0000 (10:11 +1000)
commit24fd2605c51fccc375ab0287cec33aa767f06718
tree8629e8b9edc38fd8a09a617fa97ead3f06ab8fd3
parent8e8835b2ee4af7947d5131895ef1719129d3e70d
pgrep: Fix off by one error in line check

There is now a warning if your command is longer than 15 characters
and therefore can never match. Except it was checking for more than
16 characters.

Adjusted this and added a test case.

References:
 !25
 commit 8e8835b2ee4af7947d5131895ef1719129d3e70d
pgrep.c
testsuite/pgrep.test/pgrep.exp