From: Anton Arapov Date: Thu, 13 Jan 2011 00:59:49 +0000 (-0800) Subject: lib/vsprintf.c: fix vscnprintf() if @size is == 0 X-Git-Tag: v2.6.38-rc1~362 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b921c69fb262988ff7856493a8453661a1bac814;p=pandora-kernel.git lib/vsprintf.c: fix vscnprintf() if @size is == 0 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 ("lib: fix scnprintf() if @size is == 0") moves the real fix into vscnprinf() from scnprintf() and makes scnprintf() call vscnprintf(), thus avoid code duplication. Signed-off-by: Anton Arapov Acked-by: Changli Gao Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed