Re: [PATCH] lib: fix vscnprintf() if @size is == 0

From: Changli Gao
Date: Mon Dec 13 2010 - 09:25:55 EST


On Mon, Dec 13, 2010 at 10:05 PM, Anton Arapov <aarapov@xxxxxxxxxx> wrote:
> vscnprintf() should return 0 if @size is == 0. Update the comment for it,
> as @size is unsigned.
>
> This change based on the code of commit b903c0b8899b46829a9b80ba55b61079b35940ec
> moves the real fix into vscnprinf() from scnprintf() and makes scnprintf() call
> vscnprintf(), thus avoid code duplication.
>
> Signed-off-by: Anton Arapov <aarapov@xxxxxxxxxx>

Acked-by: Changli Gao <xiaosuo@xxxxxxxxx>

--
Regards,
Changli Gao(xiaosuo@xxxxxxxxx)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/