[Winpt-commits] r420 - trunk/Src
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Sat Mar 3 21:01:04 CET 2012
Author: twoaday
Date: 2012-03-03 21:01:04 +0100 (Sat, 03 Mar 2012)
New Revision: 420
Modified:
trunk/Src/ChangeLog
trunk/Src/wptMainProc.cpp
Log:
Modified: trunk/Src/ChangeLog
===================================================================
--- trunk/Src/ChangeLog 2012-03-03 19:56:06 UTC (rev 419)
+++ trunk/Src/ChangeLog 2012-03-03 20:01:04 UTC (rev 420)
@@ -2,6 +2,7 @@
* WinPT.cpp (get_file_version): Improved error checking.
(gpg_set_debug_mode): Likewise.
+ * wptMainProc.cpp (add_taskbar_icon): Limit tooltip size.
2012-02-26 Timo Schulz <twoaday at gmx.net>
Modified: trunk/Src/wptMainProc.cpp
===================================================================
--- trunk/Src/wptMainProc.cpp 2012-03-03 19:56:06 UTC (rev 419)
+++ trunk/Src/wptMainProc.cpp 2012-03-03 20:01:04 UTC (rev 420)
@@ -271,7 +271,7 @@
nid->uCallbackMessage = WM_USER;
nid->hWnd = hwnd;
nid->hIcon = LoadIcon (glob_hinst, MAKEINTRESOURCE (IDI_WINPT));
- strcpy (nid->szTip, "Windows Privacy Tray v"PGM_VERSION);
+ _snprintf(nid->szTip, DIM(nid->szTip), "Windows Privacy Tray v"PGM_VERSION);
Shell_NotifyIcon (NIM_ADD, nid);
DestroyIcon (nid->hIcon);
}
More information about the Winpt-commits
mailing list