[alsa-devel] [patch] ASoC: soc: snprintf() doesn't return negative

Liam Girdwood lrg at slimlogic.co.uk
Mon Oct 11 12:07:47 CEST 2010

On Mon, 2010-10-11 at 05:54 +0200, Dan Carpenter wrote:
> In user space snprintf() returns negative on errors but the kernel
> version only returns positives.  It could potentially return sizes
> larger than the size of the buffer so we should check for that.
> Signed-off-by: Dan Carpenter <error27 at gmail.com>

Acked-by: Liam Girdwood <lrg at slimlogic.co.uk>
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.

More information about the Alsa-devel mailing list