From: Bram Moolenaar Date: Mon, 29 Apr 2019 19:46:26 +0000 (+0200) Subject: patch 8.1.1238: MS-Windows: compiler warning for sprintf() format X-Git-Tag: v8.1.1238 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0e67fc1663c9d5317022ea3bf252e08574c9f6f;p=vim patch 8.1.1238: MS-Windows: compiler warning for sprintf() format Problem: MS-Windows: compiler warning for sprintf() format. Solution: Change %d to %ld. (Ken Takata) --- diff --git a/src/gui_w32.c b/src/gui_w32.c index 1d4e0f74c..3914733d7 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -3129,7 +3129,7 @@ logfont2name(LOGFONTW lf) if (lf.lfWeight == FW_NORMAL || lf.lfWeight == FW_BOLD) sprintf((char *)p, "%s:h%d", font_name, points); else - sprintf((char *)p, "%s:h%d:W%d", font_name, points, lf.lfWeight); + sprintf((char *)p, "%s:h%d:W%ld", font_name, points, lf.lfWeight); while (*p) { if (*p == ' ') diff --git a/src/version.c b/src/version.c index 32fab93d3..f8a66a07c 100644 --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1238, /**/ 1237, /**/