X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/32874aeac8dacbca26663777b39a79efc5d8dc4b..9ec95c23db58dac88a48fae594ea978c148d1c61:/sizetip.c diff --git a/sizetip.c b/sizetip.c index c8832113..320fa0ae 100644 --- a/sizetip.c +++ b/sizetip.c @@ -1,8 +1,7 @@ #include -#include -#include #include #include +#include #include "putty.h" #include "winstuff.h" @@ -43,7 +42,7 @@ static LRESULT CALLBACK SizeTipWndProc(HWND hWnd, UINT nMsg, Rectangle(hdc, cr.left, cr.top, cr.right, cr.bottom); wtlen = GetWindowTextLength(hWnd); - wt = (LPTSTR) smalloc((wtlen + 1) * sizeof(TCHAR)); + wt = (LPTSTR) snewn(wtlen + 1, TCHAR); GetWindowText(hWnd, wt, wtlen + 1); SetTextColor(hdc, tip_text);