added percentage feature

This commit is contained in:
Lukas Woehrl
2016-12-11 15:58:30 +01:00
parent f36f545d75
commit 435f1f6a12
6 changed files with 501 additions and 305 deletions

View File

@@ -15,7 +15,7 @@ static int unmanagedLogger(YGLogLevel level, const char *format, va_list args) {
int result = 0;
if (gManagedFunc) {
char buffer[256];
result = vsnprintf(buffer, sizeof(buffer), format, args);
result = vsnprintf_s(buffer, sizeof(buffer), format, args);
(*gManagedFunc)(level, buffer);
}
return result;