Little improvement + comment related to strguid.

This commit is contained in:
Jief L 2020-05-10 10:05:34 +03:00
parent f7b99e3005
commit 1279ce374d

View File

@ -21,8 +21,9 @@ extern "C" {
#include "../../cpp_foundation/XString.h"
static XString8 stdio_static_buf = XString8().takeValueFrom(" ");
static XStringW stdio_static_wbuf = XString8().takeValueFrom(" ");
static XString8 stdio_static_buf = XString8().takeValueFrom("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX "); // prealloc stdio_static_buf. It has to be at least 2 chars because of 'while ( n > size - 2 )' in strguid and strerror
// = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX "_XS8 won't work because allocatedSize() will stay 0
static XStringW stdio_static_wbuf;
int vprintf(const char* format, VA_LIST va)
{