To: vim_dev@googlegroups.com Subject: Patch 7.4.1883 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1883 Problem: Cppcheck found 2 incorrect printf formats. Solution: Use %ld and %lx. (Dominique Pelle) Files: src/VisVim/Commands.cpp, src/gui_mac.c *** ../vim-7.4.1882/src/VisVim/Commands.cpp 2011-08-10 17:21:27.000000000 +0200 --- src/VisVim/Commands.cpp 2016-06-02 22:24:28.856269406 +0200 *************** *** 575,581 **** if (LineNr > 0) { // Goto line ! sprintf(VimCmd, ":%d\n", LineNr); if (! VimOle.Method(DispatchId, "s", TO_OLE_STR_BUF(VimCmd, Buf))) goto OleError; } --- 575,581 ---- if (LineNr > 0) { // Goto line ! sprintf(VimCmd, ":%ld\n", LineNr); if (! VimOle.Method(DispatchId, "s", TO_OLE_STR_BUF(VimCmd, Buf))) goto OleError; } *** ../vim-7.4.1882/src/gui_mac.c 2016-04-26 20:59:24.728486510 +0200 --- src/gui_mac.c 2016-06-02 22:24:28.856269406 +0200 *************** *** 5040,5046 **** SetControl32BitValue (sb->id, val); SetControlViewSize (sb->id, size); #ifdef DEBUG_MAC_SB ! printf("thumb_sb (%x) %x, %x,%x\n",sb->id, val, size, max); #endif } --- 5040,5046 ---- SetControl32BitValue (sb->id, val); SetControlViewSize (sb->id, size); #ifdef DEBUG_MAC_SB ! printf("thumb_sb (%x) %lx, %lx,%lx\n",sb->id, val, size, max); #endif } *** ../vim-7.4.1882/src/version.c 2016-06-02 22:18:44.040274149 +0200 --- src/version.c 2016-06-02 22:25:20.564268695 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1883, /**/ -- Despite the cost of living, have you noticed how it remains so popular? /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///