#include <winreg.h>
#include <tchar.h>
#include <stdio.h>
+#include <stdlib.h>
#include "putty.h"
void UpdateSizeTip(HWND src, int cx, int cy)
{
- TCHAR str[16];
+ TCHAR str[32];
if (!tip_enabled) return;
/* Generate the tip text */
- _sntprintf(str, 16, "%dx%d", cx, cy);
-
+ sprintf(str, "%dx%d", cx, cy);
if (!tip_wnd) {
HDC hdc;