diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-29 21:46:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-29 21:46:26 +0200 |
commit | a0e67fc1663c9d5317022ea3bf252e08574c9f6f (patch) | |
tree | 707a0e2eb9db97fd6af88868ebf8aab000b12d49 /src/gui_w32.c | |
parent | 52111f82318dfbeb6a0b06230c0609abff509250 (diff) |
patch 8.1.1238: MS-Windows: compiler warning for sprintf() formatv8.1.1238
Problem: MS-Windows: compiler warning for sprintf() format.
Solution: Change %d to %ld. (Ken Takata)
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r-- | src/gui_w32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index 1d4e0f74cb..3914733d78 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 == ' ') |