selinux: use sprintf return value
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 21 Oct 2015 21:44:27 +0000 (17:44 -0400)
committerPaul Moore <pmoore@redhat.com>
Wed, 21 Oct 2015 21:44:27 +0000 (17:44 -0400)
commit9529c7886c0741847eeb85cf2b0e0730eebe4fa5
tree67c47ad3799aaa914ce5c374b750fca019df5bb1
parent21b76f199e25d32b0a7ed3833ca9204898262c24
selinux: use sprintf return value

sprintf returns the number of characters printed (excluding '\0'), so
we can use that and avoid duplicating the length computation.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/ss/services.c