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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui