]> granicus.if.org Git - vim/commitdiff
patch 8.1.1238: MS-Windows: compiler warning for sprintf() format v8.1.1238
authorBram Moolenaar <Bram@vim.org>
Mon, 29 Apr 2019 19:46:26 +0000 (21:46 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 29 Apr 2019 19:46:26 +0000 (21:46 +0200)
Problem:    MS-Windows: compiler warning for sprintf() format.
Solution:   Change %d to %ld. (Ken Takata)

src/gui_w32.c
src/version.c

index 1d4e0f74cb5c9ef9bdc2a183e7e2b38bbc1f2d60..3914733d7846cea5e94f135be25f13f213fcbeff 100644 (file)
@@ -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 == ' ')
index 32fab93d393c55f2bb3e68d812762e9004ba6ade..f8a66a07c582c81d6724bfbaa4011ab7167efa6d 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1238,
 /**/
     1237,
 /**/