mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kwin: zero-initialize the sprintf() buffer in LogoutEffect constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
8798ee5053
commit
dd85d7b50e
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ LogoutEffect::LogoutEffect()
|
|||
effects->registerPropertyType(logoutAtom, true);
|
||||
|
||||
// Block KSMServer's effect
|
||||
char net_wm_cm_name[ 100 ];
|
||||
char net_wm_cm_name[100];
|
||||
::memset(net_wm_cm_name, '\0', sizeof(net_wm_cm_name) * sizeof(char));
|
||||
sprintf(net_wm_cm_name, "_NET_WM_CM_S%d", DefaultScreen(display()));
|
||||
Atom net_wm_cm = XInternAtom(display(), net_wm_cm_name, False);
|
||||
Window sel = XGetSelectionOwner(display(), net_wm_cm);
|
||||
|
|
Loading…
Add table
Reference in a new issue