vsprintf: vsprintf does not have parameter size
PATCH 1/1 vsprintf: vsprintf does not have parameter size
The inline documentation of vsprintf mentions a parameter size which does not exist in the function declaration.
int vsprintf(char *buf, const char *fmt, va_list args);
Signed-off-by Heinrich Schuchardt <[email protected]>
--- include/vsprintf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
include/vsprintf.h +1 -3
@@ -112,12 +112,10 @@ int sprintf(char *buf, const char *fmt, ...)* Format a string and place it in a buffer (va_list version) * * @param buf The buffer to place the result into -* @param size The size of the buffer, including the trailing null space * @param fmt The format string to use * @param args Arguments for the format string * @return the number of characters which have been written into -* the @buf not including the trailing '\0'. If @size is == 0 the function -* returns 0. +* the @buf not including the trailing '\0'. * * If you're not already dealing with a va_list consider using scnprintf(). *
Signature · 1 line
2.11.0
PATCH 1/1 vsprintf: vsprintf does not have parameter size
Quoted 6 lines · Heinrich Schuchardt
The inline documentation of vsprintf mentions a parameter size which does not exist in the function declaration.
int
vsprintf(char *buf, const char *fmt, va_list args);Signed-off-by Heinrich Schuchardt <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170907/bda23551/attachment.sig>