]> granicus.if.org Git - procps-ng/commit
proc/devname.c: Never write more than "chop" (part 2).
authorQualys Security Advisory <qsa@qualys.com>
Thu, 1 Jan 1970 00:00:00 +0000 (00:00 +0000)
committerCraig Small <csmall@enc.com.au>
Fri, 18 May 2018 21:32:21 +0000 (07:32 +1000)
commit3244e7ddb0bef2dd7ccd2e6331fa1c62c3f35d28
treef44efca995b46c679b038b9ea6e0b145674b5a6d
parent6b7ceb36a47ce148f4dd2f4e63c717c8593f0cea
proc/devname.c: Never write more than "chop" (part 2).

"chop" is the maximum offset where the null-byte should be written;
respect this even if about to write just one (non-null) character.
proc/devname.c