mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 07:38:06 -05:00
_sntprintf is nonportable; use sprintf instead
[originally from svn r297]
This commit is contained in:
parent
f1f2aafbfc
commit
cce6d4082a
@ -90,7 +90,7 @@ int tip_enabled = 0;
|
||||
|
||||
void UpdateSizeTip(HWND src, int cx, int cy)
|
||||
{
|
||||
TCHAR str[16];
|
||||
TCHAR str[32];
|
||||
|
||||
if (!tip_enabled) return;
|
||||
|
||||
@ -136,8 +136,7 @@ void UpdateSizeTip(HWND src, int cx, int cy)
|
||||
|
||||
/* Generate the tip text */
|
||||
|
||||
_sntprintf(str, 16, "%dx%d", cx, cy);
|
||||
|
||||
sprintf(str, "%dx%d", cx, cy);
|
||||
|
||||
if (!tip_wnd) {
|
||||
HDC hdc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user