Skip to content

Commit

Permalink
patch 7.4.1883
Browse files Browse the repository at this point in the history
Problem:    Cppcheck found 2 incorrect printf formats.
Solution:   Use %ld and %lx. (Dominique Pelle)
  • Loading branch information
brammool committed Jun 2, 2016
1 parent b37662a commit ea03459
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/VisVim/Commands.cpp
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui_mac.c
Expand Up @@ -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
}

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -753,6 +753,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1883,
/**/
1882,
/**/
Expand Down

0 comments on commit ea03459

Please sign in to comment.