We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f6992 commit 89d42e9Copy full SHA for 89d42e9
src/klibc/kstdio.c
@@ -51,7 +51,7 @@ RTM_EXPORT(rt_snprintf);
51
*/
52
int rt_vsprintf(char *buf, const char *format, va_list arg_ptr)
53
{
54
- return rt_vsnprintf(buf, (rt_size_t) - 1, format, arg_ptr);
+ return rt_vsnprintf(buf, ((rt_size_t) - 1) >> 1, format, arg_ptr);
55
}
56
RTM_EXPORT(rt_vsprintf);
57
0 commit comments