[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87zj04j6kr.fsf@rasmusvillemoes.dk>
Date: Wed, 30 Sep 2015 17:00:04 +0200
From: Rasmus Villemoes <linux@...musvillemoes.dk>
To: Stephen Smalley <sds@...ho.nsa.gov>
Cc: Paul Moore <paul@...l-moore.com>,
Eric Paris <eparis@...isplace.org>,
James Morris <james.l.morris@...cle.com>,
"Serge E. Hallyn" <serge@...lyn.com>,
linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org, selinux@...ho.nsa.gov,
Joe Perches <joe@...ches.com>
Subject: Re: [PATCH 5/5] selinux: use sprintf return value
On Tue, Sep 29 2015, Stephen Smalley <sds@...ho.nsa.gov> wrote:
> On 09/25/2015 06:34 PM, Rasmus Villemoes wrote:
>> 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@...musvillemoes.dk>
>
> Acked-by: Stephen Smalley <sds@...ho.nsa.gov>
Thanks. I also like Joe's add-on suggestion (except I'd declare user,
role, type as const char*).
Rasmus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists