From: simon Date: Thu, 11 Nov 1999 10:13:40 +0000 (+0000) Subject: _sntprintf is nonportable; use sprintf instead X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/cfb1e4b18bd2a20e1e37fca479d098ddfa350d56?hp=df0b42a5727461ac01ebfab2e0d4cd3c9f20308c _sntprintf is nonportable; use sprintf instead git-svn-id: svn://svn.tartarus.org/sgt/putty@297 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/sizetip.c b/sizetip.c index 90c05732..321216a8 100644 --- a/sizetip.c +++ b/sizetip.c @@ -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;