From 461aace55f71c172eeff820de82509c5c82a07cb Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Fri, 13 Jul 2018 10:01:46 +0300 Subject: [PATCH] [effects/slidingpopups] Fix possible segfault Reviewers: #kwin, mart, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: davidedmundson, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D14087 --- effects/slidingpopups/slidingpopups.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/slidingpopups/slidingpopups.cpp b/effects/slidingpopups/slidingpopups.cpp index e0112fa5be..f03fe8bfc9 100644 --- a/effects/slidingpopups/slidingpopups.cpp +++ b/effects/slidingpopups/slidingpopups.cpp @@ -393,7 +393,7 @@ void SlidingPopupsEffect::slotPropertyNotify(EffectWindow* w, long a) //do we want an actual slide? if (data.length() >= (int)(sizeof(uint32_t) * 5)) - animData.slideLength = d[5]; + animData.slideLength = d[4]; } else { animData.fadeInDuration = mFadeInTime; animData.fadeOutDuration = mFadeOutTime;