Skip to content
Snippets Groups Projects
Commit 524e3965 authored by Niklas Haas's avatar Niklas Haas
Browse files

bstr: fix type mismatch on %.*s

This is `int` and not `size_t`, which may cause issues on platforms
where the two are not the same size.
parent 91e1d50c
No related branches found
No related tags found
No related merge requests found
Pipeline #17616 passed with stages
in 8 minutes and 34 seconds
......@@ -70,7 +70,7 @@ void bstr_xappend_vasprintf_c(void *tactx, bstr *s, const char *fmt,
assert(c[1] == '*');
assert(c[2] == 's');
struct bstr str;
str.len = va_arg(ap, size_t);
str.len = va_arg(ap, int);
str.start = va_arg(ap, char *);
bstr_xappend(tactx, s, str);
c += 2; // skip '*s'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment