pgrep: some coverity fixes

procps_ns_get_id should be checked for < 0 not -1
strncpy should copy only to buflen-1 not buflen

References:
  Coverity 99117, 99108, 99107
This commit is contained in:
Craig Small
2016-04-27 22:50:25 +10:00
parent f6d6d305e7
commit ad13b4badb
2 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View File

@@ -20,6 +20,7 @@ config.rpath
config.status
config.sub
configure
cov-int
depcomp
free
INSTALL