~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
_sntprintf is nonportable; use sprintf instead
[sgt/putty]
/
sizetip.c
diff --git
a/sizetip.c
b/sizetip.c
index
90c0573
..
321216a
100644
(file)
--- a/
sizetip.c
+++ b/
sizetip.c
@@
-90,7
+90,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
+136,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;