Fix typos

Mostly found with codespell and during code review.
This commit is contained in:
Tobias Stoeckmann
2022-03-06 16:07:36 +01:00
parent a4389f4f30
commit 543a8eb5f9
7 changed files with 9 additions and 9 deletions

View File

@@ -136,12 +136,12 @@ int sprintbuf(struct printbuf *p, const char *msg, ...)
int size;
char buf[128];
/* user stack buffer first */
/* use stack buffer first */
va_start(ap, msg);
size = vsnprintf(buf, 128, msg, ap);
va_end(ap);
/* if string is greater than stack buffer, then use dynamic string
* with vasprintf. Note: some implementation of vsnprintf return -1
* with vasprintf. Note: some implementations of vsnprintf return -1
* if output is truncated whereas some return the number of bytes that
* would have been written - this code handles both cases.
*/