]> granicus.if.org Git - procps-ng/commit
0040-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>
Sat, 9 Jun 2018 11:35:19 +0000 (21:35 +1000)
commit69b67b6f6e80993ae0361cd5fdeeb499e8db81eb
treeb3f4b7b1ebfdbc18c7c542ca3f0212268dd9c438
parent0e365c8930b3aa690517f987f28bbdf203e45767
0040-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