From: Hirohito Higashi Date: Mon, 23 Mar 2026 18:46:31 +0000 (+0000) Subject: patch 9.2.0233: Compiler warning in strings.c X-Git-Tag: v9.2.0233^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=347e8c1e7d17c0c6aa044789def8dfaf07475a39;p=thirdparty%2Fvim.git patch 9.2.0233: Compiler warning in strings.c Problem: Compiler warning in strings.c (Timothy Rice, after v9.2.0031) Solution: Return early when str_m is zero (Hirohito Higashi) fixes: #19795 closes: #19800 Signed-off-by: Hirohito Higashi Signed-off-by: Christian Brabandt --- diff --git a/src/strings.c b/src/strings.c index 37f52fe248..b47422c114 100644 --- a/src/strings.c +++ b/src/strings.c @@ -2849,6 +2849,9 @@ vim_snprintf_safelen(char *str, size_t str_m, const char *fmt, ...) va_list ap; int str_l; + if (str_m == 0) + return 0; + va_start(ap, fmt); str_l = vim_vsnprintf_typval(str, str_m, fmt, ap, NULL); va_end(ap); diff --git a/src/version.c b/src/version.c index a542cb79d6..de8f408dd3 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 233, /**/ 232, /**/