Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 b903c0b ("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 <[email protected]> Acked-by: Changli Gao <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information