projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an invisible System Caret for blind-helper-software to track
[u/mdw/putty]
/
sizetip.c
diff --git
a/sizetip.c
b/sizetip.c
index
90c0573
..
b34b4f1
100644
(file)
--- a/
sizetip.c
+++ b/
sizetip.c
@@
-2,6
+2,7
@@
#include <winreg.h>
#include <tchar.h>
#include <stdio.h>
#include <winreg.h>
#include <tchar.h>
#include <stdio.h>
+#include <stdlib.h>
#include "putty.h"
#include "putty.h"
@@
-90,7
+91,7
@@
int tip_enabled = 0;
void UpdateSizeTip(HWND src, int cx, int cy)
{
void UpdateSizeTip(HWND src, int cx, int cy)
{
- TCHAR str[
16
];
+ TCHAR str[
32
];
if (!tip_enabled) return;
if (!tip_enabled) return;
@@
-136,8
+137,7
@@
void UpdateSizeTip(HWND src, int cx, int cy)
/* Generate the tip text */
/* Generate the tip text */
- _sntprintf(str, 16, "%dx%d", cx, cy);
-
+ sprintf(str, "%dx%d", cx, cy);
if (!tip_wnd) {
HDC hdc;
if (!tip_wnd) {
HDC hdc;