2
0

Fix build warnings.

This commit is contained in:
Maarten Billemont
2017-08-28 23:48:24 -04:00
parent 74f9f1ca00
commit e364f5159b
4 changed files with 81 additions and 84 deletions

View File

@@ -364,7 +364,9 @@ const char *mpw_vstr(const char *format, va_list args) {
return NULL;
do {
int len = vsnprintf( str_str, str_str_max, format, args );
size_t len = (size_t)vsnprintf( str_str, str_str_max, format, args );
if ((int)len < 0)
return NULL;
if (len < str_str_max)
break;