diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-06-02 22:27:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-06-02 22:27:08 +0200 |
commit | ea0345901cc2af29f9c5dd0d9d8a818d5f96a63b (patch) | |
tree | f5c664ef7870dc540b089f9cf88f308f9c999ed2 /src/VisVim | |
parent | b37662a0fbb952838fca87aff4d26b596030b67b (diff) | |
download | vim-git-ea0345901cc2af29f9c5dd0d9d8a818d5f96a63b.tar.gz |
patch 7.4.1883v7.4.1883
Problem: Cppcheck found 2 incorrect printf formats.
Solution: Use %ld and %lx. (Dominique Pelle)
Diffstat (limited to 'src/VisVim')
-rw-r--r-- | src/VisVim/Commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VisVim/Commands.cpp b/src/VisVim/Commands.cpp index 111b163c4..569fbb87d 100644 --- a/src/VisVim/Commands.cpp +++ b/src/VisVim/Commands.cpp @@ -575,7 +575,7 @@ static BOOL VimOpenFile(BSTR& FileName, long LineNr) 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; } |