]> git.proxmox.com Git - mirror_lxcfs.git/commit
bindings: even more concise must_strcat_pid
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 5 Feb 2016 11:10:15 +0000 (12:10 +0100)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 8 Feb 2016 17:14:55 +0000 (09:14 -0800)
commitbbfd0e331d43ede344f0f6b630ff6961a8c1ec90
tree2e151e7a537179350f3338fe7df2ba121d81d1ef
parente97c834b1ae0990d4ab3dc344a2a63b5ab65d5fa
bindings: even more concise must_strcat_pid

We already assume tmp[] is big enough when using an unsized
sprintf(), considering it contains a single pid number and
is 30 bytes we can assume it was also big enough to hold the
terminating null byte.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
bindings.c