X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/b73fd1b14f758cc52b47b1cec9c68ba52fee70ac..8ccc75b0d2187cd9e35913749de0ed00e9ef5931:/sizetip.c 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;