mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 7.4.1883
Problem: Cppcheck found 2 incorrect printf formats. Solution: Use %ld and %lx. (Dominique Pelle)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -5040,7 +5040,7 @@ gui_mch_set_scrollbar_thumb(
|
||||
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);
|
||||
printf("thumb_sb (%x) %lx, %lx,%lx\n",sb->id, val, size, max);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -753,6 +753,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1883,
|
||||
/**/
|
||||
1882,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user