mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-20 20:45:02 -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)
|
void UpdateSizeTip(HWND src, int cx, int cy)
|
||||||
{
|
{
|
||||||
TCHAR str[16];
|
TCHAR str[32];
|
||||||
|
|
||||||
if (!tip_enabled) return;
|
if (!tip_enabled) return;
|
||||||
|
|
||||||
@ -136,8 +136,7 @@ void UpdateSizeTip(HWND src, int cx, int cy)
|
|||||||
|
|
||||||
/* Generate the tip text */
|
/* Generate the tip text */
|
||||||
|
|
||||||
_sntprintf(str, 16, "%dx%d", cx, cy);
|
sprintf(str, "%dx%d", cx, cy);
|
||||||
|
|
||||||
|
|
||||||
if (!tip_wnd) {
|
if (!tip_wnd) {
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user