X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=sizetip.c;h=b34b4f114fd36a390ccd1b2ddbb48792290020af;hb=0fed43e9f4974570791bdb8a5d61631a4e84d1b0;hp=90c057325c57c537468da6e71cb4372def5c1a21;hpb=1f5bcfd90e93923c685ef5d5e744c1c9df1cf1b2;p=PuTTY.git diff --git a/sizetip.c b/sizetip.c index 90c05732..b34b4f11 100644 --- a/sizetip.c +++ b/sizetip.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "putty.h" @@ -90,7 +91,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 +137,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;