X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/b73fd1b14f758cc52b47b1cec9c68ba52fee70ac..b8c98f3cf636db3b80ff2c4908f7590e37bcd3da:/sizetip.c?ds=sidebyside 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;