From b9b17a58da0e57ab32302ca6c7183a7cad88c7ee Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 22 Apr 2018 20:03:43 +0300 Subject: strings: Fix PVS/V779: wrong assert() position --- src/nvim/strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/strings.c b/src/nvim/strings.c index e3f6a8cbf6..e9eeca48b8 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -1145,8 +1145,8 @@ int vim_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap, f, uarg); break; } - assert(str_arg_l < sizeof(tmp)); } + assert(str_arg_l < sizeof(tmp)); // include the optional minus sign and possible "0x" in the region // before the zero padding insertion point -- cgit