commit | ea0345901cc2af29f9c5dd0d9d8a818d5f96a63b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Jun 02 22:27:08 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jun 02 22:27:08 2016 +0200 |
tree | f5c664ef7870dc540b089f9cf88f308f9c999ed2 | |
parent | b37662a0fbb952838fca87aff4d26b596030b67b [diff] [blame] |
patch 7.4.1883 Problem: Cppcheck found 2 incorrect printf formats. Solution: Use %ld and %lx. (Dominique Pelle)
diff --git a/src/VisVim/Commands.cpp b/src/VisVim/Commands.cpp index 111b163..569fbb8 100644 --- a/src/VisVim/Commands.cpp +++ b/src/VisVim/Commands.cpp
@@ -575,7 +575,7 @@ if (LineNr > 0) { // Goto line - sprintf(VimCmd, ":%d\n", LineNr); + sprintf(VimCmd, ":%ld\n", LineNr); if (! VimOle.Method(DispatchId, "s", TO_OLE_STR_BUF(VimCmd, Buf))) goto OleError; }