strings: Fix PVS/V779: wrong assert() position

This commit is contained in:
ZyX
2018-04-22 20:03:43 +03:00
parent fb0c35105f
commit b9b17a58da

View File

@@ -1145,8 +1145,8 @@ int vim_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap,
f, uarg); f, uarg);
break; break;
} }
assert(str_arg_l < sizeof(tmp));
} }
assert(str_arg_l < sizeof(tmp));
// include the optional minus sign and possible "0x" in the region // include the optional minus sign and possible "0x" in the region
// before the zero padding insertion point // before the zero padding insertion point